TesterRepositoryCheckController checkController = new TesterRepositoryCheckController(repository);
NodeImpl node1 = (NodeImpl)addTestNode(repository);
NodeImpl node2 = (NodeImpl)addTestNode(repository, node1.getUUID());
NodeImpl node3 = (NodeImpl)addTestNode(repository, node2.getUUID());
assertResult(checkController.checkDataBase(), checkController.getLastReportPath(), true);
removePropertyInDB(repository, (PropertyImpl)node3.getProperty("jcr:primaryType"));
removePropertyInDB(repository, (PropertyImpl)node2.getProperty("jcr:primaryType"));
removePropertyInDB(repository, (PropertyImpl)node1.getProperty("jcr:primaryType"));
assertResult(checkController.checkDataBase(), checkController.getLastReportPath(), false);