private PlantUmlDiagram createDiagram(List<String> rawDiagramLines) {
        List<String> diagramLines = filterOutComments(rawDiagramLines);
        Set<PlantUmlComponent> components = parseComponents(diagramLines);
        PlantUmlComponents plantUmlComponents = new PlantUmlComponents(components);

        List<ParsedDependency> dependencies = parseDependencies(plantUmlComponents, diagramLines);

        return new PlantUmlDiagram.Builder(plantUmlComponents)
                .withDependencies(dependencies)
                .build();
    }
@Test
    public void ignores_database_components() {
        File file = TestDiagram.in(temporaryFolder)
                .rawLine("database \"DB\"")
                .component("componentA").withAlias("aliasA").withStereoTypes("..packageA..")
                .component("componentB").withAlias("aliasB").withStereoTypes("..packageB..")
                .dependencyFrom("aliasA").to("aliasB")
                .dependencyFrom("aliasB").to("DB")
                .dependencyFrom("componentA").to("DB")
                .write();

        PlantUmlDiagram diagram = createDiagram(file);

        PlantUmlComponent a = getComponentWithAlias(new Alias("aliasA"), diagram);
        PlantUmlComponent b = getComponentWithAlias(new Alias("aliasB"), diagram);

        assertThat(a.getDependencies()).containsOnly(b);
        assertThat(b.getDependencies()).isEmpty();
    }