@Test
public void shouldCreateSuccessResponseWithNullEntity() throws Exception {

    Response response = JSONResponse.createResponse(Status.ACCEPTED, null, null);
    assertThat(response.getStatus(), is(202));
    assertThat(response.getMediaType(), is(MediaType.APPLICATION_JSON_TYPE));
    Object entity = response.getEntity();
    assertThat(entity, is(nullValue()));
}