DefaultHttpJsonResponse implements HttpJsonResponse { @Override public int getResponseCode() { return responseCode; } protected  DefaultHttpJsonResponse(String response, int responseCode); protected  DefaultHttpJsonResponse(
      String response, int responseCode, Map<String, List<String>> headers); @Override String asString(); @Override T asDto(Class<T> dtoInterface); @Override List<T> asList(Class<T> dtoInterface); @Override @SuppressWarnings("unchecked") Map<String, String> asProperties(); @Override T as(Class<T> clazz, Type genericType); @Override Map<String, List<String>> getHeaders(); @Override int getResponseCode();  }
@Test public void shouldReturnCorrectResponseCode() { final DefaultHttpJsonResponse response = new DefaultHttpJsonResponse("not valid json", 201); assertEquals(response.getResponseCode(), 201); }