### Question:
StructValue extends HashMap<Field, Object> implements Iterable<Map.Entry<Field, Object>> { public boolean isType( Type otherType ) { return type.equals( otherType ); } StructValue( Type type, ValueFactory vf );  StructValue( Type type, ValueFactory vf, int length ); Type type(); Level level(); boolean isType( Type otherType ); void checkType( Type expectedType ); final Iterator<Map.Entry<Field, Object>> iterator(); @Override final Object put( Field key, Object value ); @Override String toString();  }### Answer:
@Test public void isType() { StructValue sv = new StructValue( mt1, vf ); assertTrue( sv.isType( mt1 ) ); assertFalse( sv.isType( mt2 ) ); sv = new StructValue( mt2, vf ); assertTrue( sv.isType( mt2 ) ); assertFalse( sv.isType( mt1 ) ); }