### Question:
StaticServicesRegistrationService { public List<InstanceInfo> getStaticInstances() { return staticInstances; } @Autowired  StaticServicesRegistrationService(ServiceDefinitionProcessor serviceDefinitionProcessor, MetadataDefaultsService metadataDefaultsService); List<InstanceInfo> getStaticInstances(); void registerServices(); synchronized StaticRegistrationResult reloadServices();  }### Answer:
@Test public void testGetStaticInstances() { ServiceDefinitionProcessor serviceDefinitionProcessor = mock(ServiceDefinitionProcessor.class); StaticServicesRegistrationService registrationService = new StaticServicesRegistrationService(serviceDefinitionProcessor, new MetadataDefaultsService()); List<InstanceInfo> instances = registrationService.getStaticInstances(); assertEquals(0, instances.size()); verify(serviceDefinitionProcessor, times(0)).findStaticServicesData(any(String.class)); }