@Test public void testProjectDMOAnnotationAttributes() throws Exception { final ProjectDataModelOracleBuilder builder = ProjectDataModelOracleBuilder.newProjectOracleBuilder(); final ProjectDataModelOracleImpl oracle = new ProjectDataModelOracleImpl(); final ClassFactBuilder cb = new ClassFactBuilder(builder, Smurf.class, false, TypeSource.JAVA_PROJECT); cb.build(oracle); assertEquals(1, oracle.getProjectModelFields().size()); assertContains( "org.kie.workbench.common.services.datamodel.backend.server.testclasses.annotations.Smurf", oracle.getProjectModelFields().keySet()); final Set<Annotation> annotations = oracle .getProjectTypeAnnotations() .get( "org.kie.workbench.common.services.datamodel.backend.server.testclasses.annotations.Smurf"); assertNotNull(annotations); assertEquals(1, annotations.size()); final Annotation annotation = annotations.iterator().next(); assertEquals( "org.kie.workbench.common.services.datamodel.backend.server.testclasses.annotations.SmurfDescriptor", annotation.getQualifiedTypeName()); assertEquals("blue", annotation.getAttributes().get("colour")); assertEquals("M", annotation.getAttributes().get("gender")); assertEquals("Brains", annotation.getAttributes().get("description")); }