@Test
public void shouldSetBlacklistedFlagToFalseIfDeviceBlacklistedRequestIsFalse() throws IOException, JSONException {

    getFakeHttpLayer()
            .addHttpResponseRule("GET",
                    "http://whatever/api/is_blacklisted/1234",
                    new TestHttpResponse(200, "{\"blacklisted\":\"false\"}"));
    DeviceService service = new DeviceService(context);
    assertFalse(service.isBlacklisted());
}