@Test
public void testValidRequestModel1() throws IOException, JSONException {
MultipartEntity entity = new MultipartEntity();
entity.addPart("sling:resourceType", new StringBody("validation/test/resourceType1"));
entity.addPart("field1", new StringBody("HelloWorld"));
entity.addPart("field2", new StringBody("30.01.1988"));
entity.addPart(SlingPostConstants.RP_OPERATION, new StringBody("validation"));
RequestExecutor re = getRequestExecutor().execute(getRequestBuilder().buildPostRequest
("/validation/testing/fakeFolder1/resource").withEntity(entity)).assertStatus(200);
JSONObject jsonResponse = new JSONObject(re.getContent());
assertTrue(jsonResponse.getBoolean("valid"));