/**
* @throws Exception
*/
@Test
public void getModelMetaWithEntity() throws Exception {
AaaMeta aaaMeta = new AaaMeta();
Entity entity = new Entity("Aaa");
entity.setProperty(
aaaMeta.getClassHierarchyListName(),
Arrays.asList(Bbb.class.getName()));
ModelMeta<Aaa> modelMeta = DatastoreUtil.getModelMeta(aaaMeta, entity);
assertThat(modelMeta, is(notNullValue()));
assertThat(modelMeta.getModelClass().getName(), is(Bbb.class.getName()));
}