@Test
public void testGetEntityClassFromNodeLabelsHavingTheLabelDeclaredByTheClassNameWithoutInheritance() throws Exception {

    final String simpleClassName = "EntityClass";
    final JPackage jp = jCodeModel.rootPackage();
    final JDefinedClass jClass = jp._class(JMod.PUBLIC, simpleClassName);
    jClass.annotate(Entity.class);
    buildModel(testFolder.getRoot(), jCodeModel);
    compileModel(testFolder.getRoot());
    final Class<?> entityClass = loadClass(testFolder.getRoot(), jClass.name());
    final Class<?> clazz = EntityUtils.getEntityClassFromNodeLabels(Arrays.asList(simpleClassName), Arrays.asList(entityClass));
    assertThat(clazz, equalTo(entityClass));
}