@Test
public void getEmptyMetadata() throws Exception {

    DataSetMetadata metadata = dataSetMetadataRepository.get("9876");
    assertNull(metadata);
    int statusCode = when().get("/datasets/{id}/metadata", "9876").statusCode();
    assertThat(statusCode, is(HttpStatus.NOT_FOUND.value()));
}