WilmaApplication { public boolean shutdownApplication() { LOG.debug("Call application shutdown API."); String url = buildUrl(SHUTDOWN_URL_POSTFIX); LOG.debug("Send shutdown request to: " + url); return wilmaClient.sendSetterRequest(url); } WilmaApplication(WilmaServiceConfig config);  WilmaApplication(WilmaServiceConfig config, WilmaHttpClient client); String getVersionInformation(); WilmaLoadInformation getActualLoadInformation(); boolean shutdownApplication(); JSONObject callGetService(final String serviceQueryString);  }
@Test public void shouldReturnWithProperBooleanValueForShutdownRequest() { when(client.sendSetterRequest(SHUTDOWN_URL)).thenReturn(true); Assert.assertTrue(wilmaApplication.shutdownApplication()); verify(client, never()).sendGetterRequest(anyString()); }