@Test
public void newResource() {

    stubFor(post(urlPathEqualTo("/dc/type/legal:type_0")).willReturn(created()));
    ResponseEntity responseEntity = dcImporterService.newResource("legal:type_0", "test_0", this.resourceProperties(), "access-token-test");
    WireMock.verify(postRequestedFor(urlPathEqualTo("/dc/type/legal:type_0"))
            .withHeader(HttpHeaders.AUTHORIZATION, equalTo("Bearer access-token-test"))
            .withHeader(HttpHeaders.CONTENT_TYPE, equalTo(ContentType.APPLICATION_JSON.getMimeType()))
            .withHeader("X-Datacore-Project", equalTo("test_0"))
            .withRequestBody(equalToJson(this.resourceRequestBody())));
    Assert.assertEquals(responseEntity.getStatusCode(), HttpStatus.CREATED);
}