ZkStatusService implements StatusService { @Override public HostInfo getHostInfo(ApplicationInstanceReference reference, HostName hostName) { return hostInfosCache.getHostInfos(reference).getOrNoRemarks(hostName); } @Inject  ZkStatusService(
            @Component Curator curator,
            @Component Metric metric,
            @Component Timer timer,
            @Component AntiServiceMonitor antiServiceMonitor);   ZkStatusService(Curator curator, Metric metric, Timer timer, HostInfosCache hostInfosCache,
                    AntiServiceMonitor antiServiceMonitor); @Override Set<ApplicationInstanceReference> getAllSuspendedApplications(); @Override Function<ApplicationInstanceReference, HostInfos> getHostInfosByApplicationResolver(); @Override ApplicationLock lockApplication(OrchestratorContext context, ApplicationInstanceReference reference); @Override HostInfo getHostInfo(ApplicationInstanceReference reference, HostName hostName); @Override ApplicationInstanceStatus getApplicationInstanceStatus(ApplicationInstanceReference reference); @Override void onApplicationActivate(ApplicationInstanceReference reference, Set<HostName> hostnames); @Override void onApplicationRemove(ApplicationInstanceReference reference);  }
@Test public void host_state_for_unknown_hosts_is_no_remarks() throws Exception { assertThat( statusService.getHostInfo(TestIds.APPLICATION_INSTANCE_REFERENCE, TestIds.HOST_NAME1).status(), is(HostStatus.NO_REMARKS)); }