fs.exists(new Path(path + "/test/" + DatasetUtils.getDatasetName(recordClass) + "/.metadata")));
Collection<T> results = datasetOperations.read(recordClass);
assertEquals(2, results.size());
List<T> sorted = new ArrayList<T>(results);
Collections.sort(sorted);
BeanWrapper result = new BeanWrapperImpl(sorted.get(0));
assertTrue(result.isReadableProperty("name"));
assertTrue(result.getPropertyValue("name").equals("Sven"));
assertTrue(result.isReadableProperty("id"));
assertTrue(result.getPropertyValue("id").equals(22L));
result = new BeanWrapperImpl(sorted.get(1));
assertTrue(result.isReadableProperty("name"));
assertTrue(result.getPropertyValue("name").equals("Nisse"));
assertTrue(result.isReadableProperty("id"));
assertTrue(result.getPropertyValue("id").equals(48L));
}