TankRevisionListener implements RevisionListener { public void newRevision(Object revisionEntity) { TankRevisionInfo revisionInfo = (TankRevisionInfo) revisionEntity; revisionInfo.setUsername(ThreadLocalUsernameProvider.getUsernameProvider().getUserName()); }  void newRevision(Object revisionEntity);  }
@Test public void testNewRevision_1() throws Exception { TankRevisionListener fixture = new TankRevisionListener(); Object revisionEntity = new TankRevisionInfo(); fixture.newRevision(revisionEntity); }