@Test
public void testJsonLoaderLoadUsingProperResource() throws Exception {

    // WHEN
    final DataSetLoader<Document> loader = LOADER_PROVIDER.jsonLoader();
    // THEN
    assertThat(loader, notNullValue());
    // WHEN
    final Document document = loader.load(getFile("test-data.json"));
    // THEN
    assertThat(document, notNullValue());
    final Set<String> tableNames = document.keySet();
    assertThat(tableNames.size(), equalTo(2));
    assertThat(tableNames, hasItems("JSON_COLLECTION_1", "JSON_COLLECTION_2"));
    final List<Document> collection1 = document.get("JSON_COLLECTION_1", List.class);
    assertThat(collection1.size(), equalTo(3));
    final List<Document> collection2 = document.get("JSON_COLLECTION_2", List.class);
    assertThat(collection2.size(), equalTo(1));
}