OwnerManager { public Owner updateRefreshDate(Owner owner) { owner.setLastRefreshed(new Date()); return ownerCurator.merge(owner); } @Inject  OwnerManager(ConsumerCurator consumerCurator,
        ActivationKeyCurator activationKeyCurator,
        EnvironmentCurator envCurator,
        ExporterMetadataCurator exportCurator,
        ImportRecordCurator importRecordCurator,
        PermissionBlueprintCurator permissionCurator,
        OwnerProductCurator ownerProductCurator,
        ProductManager productManager,
        OwnerContentCurator ownerContentCurator,
        ContentManager contentManager,
        OwnerCurator ownerCurator,
        UeberCertificateCurator uberCertificateCurator,
        OwnerServiceAdapter ownerServiceAdapter,
        EventSink sink); @Transactional void cleanupAndDelete(Owner owner, boolean revokeCerts); Owner updateRefreshDate(Owner owner);  }
@Test public void testUpdateRefreshDate() { Date initial = Util.yesterday(); Owner owner = new Owner(); owner.setLastRefreshed(initial); OwnerManager manager = this.createManager(); Owner output = manager.updateRefreshDate(owner); assertSame(output, owner); assertNotNull(output.getLastRefreshed()); assertNotEquals(output.getLastRefreshed(), initial); assertTrue(initial.before(output.getLastRefreshed())); }