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());
polyClassBase = polyBaseClasses.get(2);
assertTrue(polyClassBase instanceof StringBaseEntitySubThree);
final StringBaseEntitySubThree stringBaseEntitySubThree = (StringBaseEntitySubThree) polyClassBase;
assertEquals("Class 3", stringBaseEntitySubThree.getStringClassTwo());