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

    getFakeHttpLayer()
            .addHttpResponseRule("GET",
            "http://whatever/api/is_blacklisted/1234",
            new TestHttpResponse(200, "{\"blacklisted\":\"true\"}"));
    assertTrue(deviceService.isBlacklisted());
}