assertTrue(objComplexType.getConsistentEdmComplexTypes().size() > 1);
}
@Test
public void testExpandEdmComplexType() {
ComplexType complexType = new ComplexType();
List<Property> properties = new ArrayList<Property>();
JPAEdmMapping mapping1 = new JPAEdmMappingImpl();
mapping1.setJPAColumnName("LINEITEMID");
((Mapping) mapping1).setInternalName("LineItemKey.LiId");
JPAEdmMapping mapping2 = new JPAEdmMappingImpl();
mapping2.setJPAColumnName("LINEITEMNAME");
((Mapping) mapping2).setInternalName("LineItemKey.LiName");
properties.add(new SimpleProperty().setName("LIID").setMapping((Mapping) mapping1));
properties.add(new SimpleProperty().setName("LINAME").setMapping((Mapping) mapping2));
complexType.setProperties(properties);
List<Property> expandedList = null;
try {
objComplexType.expandEdmComplexType(complexType, expandedList, "SalesOrderItemKey");
} catch (ClassCastException e) {
assertTrue(false);