@Test public void assertIsJobNodeExisted() { when(coordinatorRegistryCenter.isExisted("/testJob/config")).thenReturn(true); assertTrue(jobNodeStorage.isJobNodeExisted("config")); verify(coordinatorRegistryCenter).isExisted("/testJob/config"); }