AbstractDatalinkEdit extends EditSupport<Datalink> { @Override public final Datalink getSubject() { return datalink; } protected  AbstractDatalinkEdit(Datalink datalink); @Override final Datalink applyEdit(); @Override final Datalink getSubject();  }
@Test public void testGetSubject() { AbstractDatalinkEdit edit = new AbstractDatalinkEdit(datalink) { @Override protected void doEditAction(DatalinkImpl datalink) throws EditException { } }; assertEquals(datalink, edit.getSubject()); }