@Test
public void shouldReturnNullIfClientReturnsOptionalAbsent() {

    when(client.sendGetterRequest(LOGGING_STATUS_URL)).thenReturn(Optional.<String>absent());
    MessageLoggingControlStatus result = messageLoggingConfiguration.getMessageLoggingStatus();
    assertNull(result);
    verify(client, never()).sendSetterRequest(anyString());
}