### Question:
SymRef extends Ref { public SymRef(String name, Ref target) { super(name, target.getObjectId()); this.target = target; } SymRef(String name, Ref target); String getTarget(); @Override String toString();  }### Answer:
@Test public void testSymRef() { Ref testRef = new Ref(Ref.REFS_PREFIX + "commit1", ObjectId.forString("Test Commit")); SymRef symRef = new SymRef("TestRef", testRef); assertEquals(testRef.getName(), symRef.getTarget()); String symRefString = symRef.toString(); assertEquals("SymRef[TestRef -> " + "Ref[" + testRef.getName() + " -> " + testRef.getObjectId().toString() + "]]", symRefString); }