LPS-41870 Fix integration test restoring original status for BeanLocator