@@ -24,8 +24,8 @@ public class EmployeePolymorphismTest {
}
- @Test
+ @Test(expected = ClassCastException.class)
public void test3() {
- Assert.assertFalse((Account) (Object) employee instanceof Account);
+ Account account = (Account) (Object) employee;