publicclassDeclareParentsPrecedenceTest{publicstaticvoidmain(String[]argv){TestClasst=newTestClass();if(!(tinstanceofInterface1))thrownewRuntimeException("t not instanceof Interface1");if(!(tinstanceofInterface1TestClass))thrownewRuntimeException("t not instanceof Interface1TestClass");}}