@Test
public void checkConstructContentPopulateProjectCollectionTypesAndDSLSentences() throws Exception {

    final Path path = mock(Path.class);
    final Overview overview = mock(Overview.class);
    final ModuleDataModelOracle projectDataModelOracle = ModuleDataModelOracleBuilder.newModuleOracleBuilder(new RawMVELEvaluator())
            .addClass(List.class)
            .addClass(Set.class)
            .addClass(Collection.class)
            .addClass(Integer.class)
            .build();
    final PackageDataModelOracle oracle = PackageDataModelOracleBuilder.newPackageOracleBuilder(new RawMVELEvaluator())
            .setModuleOracle(projectDataModelOracle)
            .addExtension(DSLActionSentence.INSTANCE, Collections.singletonList(dslSentence))
            .addExtension(DSLConditionSentence.INSTANCE, Collections.singletonList(dslSentence))
            .build();
    when(path.toURI()).thenReturn("file://project/src/main/resources/mypackage/rule.rdrl");
    when(dataModelService.getDataModel(any())).thenReturn(oracle);
    final GuidedEditorContent content = service.constructContent(path,
                                                                 overview);
    assertEquals(3,
                 content.getDataModel().getCollectionTypes().size());
    assertTrue(content.getDataModel().getCollectionTypes().containsKey("java.util.Collection"));
    assertTrue(content.getDataModel().getCollectionTypes().containsKey("java.util.List"));
    assertTrue(content.getDataModel().getCollectionTypes().containsKey("java.util.Set"));
    assertTrue(content.getDataModel().getPackageElements(DSLActionSentence.INSTANCE).contains(dslSentence));
    assertTrue(content.getDataModel().getPackageElements(DSLConditionSentence.INSTANCE).contains(dslSentence));
}