@Test
public void shouldReturnNullJSONObjectIfClientReturnsOptionalAbsent() {

    when(client.sendGetterRequest(SEQUENCES_STATUS_URL)).thenReturn(Optional.<String>absent());
    JSONObject result = sequenceConfiguration.getSequencesLiveInformation();
    assertNull(result);
    verify(client, never()).sendSetterRequest(anyString());
}