### Question:
ContainerPresenter { public void onInstanceUpdated(@Observes ServerInstanceUpdated instanceUpdated) { if (instanceUpdated != null && containerSpec != null && containerSpec.getServerTemplateKey().getId().equals(instanceUpdated.getServerInstance().getServerTemplateId())) { load(containerSpec); } } @Inject  ContainerPresenter(final Logger logger,
                              final View view,
                              final ContainerRemoteStatusPresenter containerRemoteStatusPresenter,
                              final ContainerStatusEmptyPresenter containerStatusEmptyPresenter,
                              final ContainerProcessConfigPresenter containerProcessConfigPresenter,
                              final ContainerRulesConfigPresenter containerRulesConfigPresenter,
                              final Caller<RuntimeManagementService> runtimeManagementService,
                              final Caller<SpecManagementService> specManagementService,
                              final Event<ServerTemplateSelected> serverTemplateSelectedEvent,
                              final Event<NotificationEvent> notification); @PostConstruct void init(); View getView(); void onRefresh(@Observes final RefreshRemoteServers refresh); void load(@Observes final ContainerSpecSelected containerSpecSelected); void onInstanceUpdated(@Observes ServerInstanceUpdated instanceUpdated); void loadContainers(@Observes final ContainerSpecData content); void refreshOnContainerUpdateEvent(@Observes final ContainerUpdateEvent updateEvent); void refresh(); void load(final ContainerSpecKey containerSpecKey); void removeContainer(); void stopContainer(); void startContainer(); void toggleActivationContainer();  }### Answer:
@Test public void testOnInstanceUpdatedWhenContainerSpecServerTemplateNotEqualServerInstanceUpdatedServerTemplate() { ServerInstanceUpdated serverInstanceUpdated = mock(ServerInstanceUpdated.class); ServerInstance serverInstance = mock(ServerInstance.class); when(serverInstanceUpdated.getServerInstance()).thenReturn(serverInstance); when(serverInstance.getServerTemplateId()).thenReturn(serverTemplateKey + "1"); presenter.onInstanceUpdated(serverInstanceUpdated); verify(runtimeManagementService, times(0)).getContainersByContainerSpec(any(), any()); }