    @Test
    public void checkNullableEntitiesAndRemapTest() {

        Response response = RESTUtils.checkNullableEntitiesAndRemap(1l, null, (a, b) -> "");
        assertEquals(404, response.getStatus());
        response = RESTUtils.checkNullableEntitiesAndRemap(null, "", (a, b) -> "");
        assertEquals(404, response.getStatus());
        response = RESTUtils.checkNullableEntitiesAndRemap("", "", (a, b) -> "ENTITY");
        assertEquals(200, response.getStatus());
        assertEquals("ENTITY", response.getEntity());
    }