public static void assertCommitContainsAffectedPaths(String revisionId,
String... expectedPaths) throws Exception {
DBCollection commitCollection = nodeStore.getCommitCollection();
DBObject query = QueryBuilder.start(MongoCommit.KEY_REVISION_ID)
.is(MongoUtil.toMongoRepresentation(revisionId)).get();
MongoCommit result = (MongoCommit) commitCollection.findOne(query);
Assert.assertNotNull(result);
Set<String> actualPaths = result.getAffectedPaths();
Assert.assertEquals(new HashSet<String>(Arrays.asList(expectedPaths)), new HashSet<String>(actualPaths));
}