ServerService { public boolean isJobPausedManually() { return jobNodeStorage.isJobNodeExisted(ServerNode.getPausedNode(localHostService.getIp())); } ServerService(final CoordinatorRegistryCenter coordinatorRegistryCenter, final JobConfiguration jobConfiguration); void clearPreviousServerStatus(); void persistServerOnline(); void clearJobPausedStatus(); boolean isJobPausedManually(); void processServerShutdown(); void updateServerStatus(final ServerStatus status); void removeServerStatus(); List<String> getAllServers(); List<String> getAvailableServers(); boolean isAvailableServer(final String ip); boolean isLocalhostServerReady(); void persistProcessSuccessCount(final int processSuccessCount); void persistProcessFailureCount(final int processFailureCount);  }
@Test public void assertIsJobPausedManually() { when(jobNodeStorage.isJobNodeExisted("servers/mockedIP/paused")).thenReturn(true); assertTrue(serverService.isJobPausedManually()); verify(jobNodeStorage).isJobNodeExisted("servers/mockedIP/paused"); }