@Test
  public void testComponentCount() throws OpenRDFException, IOException {
    setUp("components_1.rdf");

    long conceptCount = involvedConcepts.getResult().getData().size();
    Collection<Collection<Resource>> components = disconnectedConceptClusters.getResult().getData();

    Assert.assertEquals(7, components.size());
    Assert.assertTrue(getVertexCount(components) <= conceptCount);
  }
 @Test
 public void testComponents_ok() throws OpenRDFException, IOException {
   setUp("components_2.rdf");
   Assert.assertFalse(disconnectedConceptClusters.getResult().isProblematic());
 }
 private void setUp(String filename) throws IOException, OpenRDFException {
   involvedConcepts = new InvolvedConcepts();
   disconnectedConceptClusters = new DisconnectedConceptClusters(involvedConcepts);
   disconnectedConceptClusters.setRepositoryConnection(
       new RepositoryBuilder().setUpFromTestResource(filename).getConnection());
 }