@Test
public void shouldReturnWithProperValue() {

    when(client.sendGetterRequest(LOCALHOST_BLOCKING_STATUS_URL)).thenReturn(Optional.of(JSON_STRING));
    LocalhostControlStatus result = localhostBlockingConfiguration.getLocalhostBlockingStatus();
    assertTrue(result == LocalhostControlStatus.ON);
    verify(client, never()).sendSetterRequest(anyString());
}