@Test
public void testGetNewConflicts() throws Exception {

  given().expect().statusCode(HttpStatus.SC_BAD_REQUEST).when().post(rt.host("new/conflicts"));
  given().formParam("metadata", "asdt").expect().statusCode(HttpStatus.SC_BAD_REQUEST).when()
          .post(rt.host("new/conflicts"));
  String expected = IOUtils.toString(getClass().getResource("/conflicts.json"));
  String metadataString = IOUtils.toString(getClass().getResource("/conflictRequest.json"));
  String result = given().formParam("metadata", metadataString).expect().statusCode(HttpStatus.SC_CONFLICT).when()
          .post(rt.host("new/conflicts")).asString();
  assertThat(expected, SameJSONAs.sameJSONAs(result));
}