### Question:
BasicValue implements Value { public boolean isReference() { return type != null && (type.getSort() == Type.OBJECT || type.getSort() == Type.ARRAY); } BasicValue(final Type type); Type getType(); @Override int getSize(); boolean isReference(); @Override boolean equals(final Object value); @Override int hashCode(); @Override String toString(); static final BasicValue UNINITIALIZED_VALUE; static final BasicValue INT_VALUE; static final BasicValue FLOAT_VALUE; static final BasicValue LONG_VALUE; static final BasicValue DOUBLE_VALUE; static final BasicValue REFERENCE_VALUE; static final BasicValue RETURNADDRESS_VALUE; }### Answer:
@Test public void testIsReference() { assertTrue(BasicValue.REFERENCE_VALUE.isReference()); assertTrue(new BasicValue(Type.getObjectType("[I")).isReference()); assertFalse(BasicValue.UNINITIALIZED_VALUE.isReference()); assertFalse(BasicValue.INT_VALUE.isReference()); }