assertEquals(3, polyBaseClasses.size());
StringBaseEntity polyClassBase = polyBaseClasses.get(0);
assertTrue(polyClassBase instanceof StringBaseEntitySub);
assertEquals("PolySubClassOne 1", polyClassBase.getStringBase());
final StringBaseEntitySub stringBaseEntitySub = (StringBaseEntitySub) polyClassBase;
assertEquals("Class 1", stringBaseEntitySub.getStringClassOne());
polyClassBase = polyBaseClasses.get(1);
assertTrue(polyClassBase instanceof StringBaseEntitySubTwo);
final StringBaseEntitySubTwo stringBaseEntitySubTwo = (StringBaseEntitySubTwo) polyClassBase;
assertEquals("Class 2", stringBaseEntitySubTwo.getStringClassTwo());