OrderModificationCleanUpJobPerformable extends AbstractJobPerformable<CleanUpProcessedOrderModificationsCronJobModel> { @Override public PerformResult perform(final CleanUpProcessedOrderModificationsCronJobModel cleanUpOrderModificationsCronJobModel) { getWorldpayOrderModificationCleanUpStrategy().doCleanUp(cleanUpOrderModificationsCronJobModel.getDaysToWaitBeforeDeletion()); return new PerformResult(CronJobResult.SUCCESS, CronJobStatus.FINISHED); }  @Override PerformResult perform(final CleanUpProcessedOrderModificationsCronJobModel cleanUpOrderModificationsCronJobModel); WorldpayOrderModificationCleanUpStrategy getWorldpayOrderModificationCleanUpStrategy(); @Required void setWorldpayOrderModificationCleanUpStrategy(WorldpayOrderModificationCleanUpStrategy worldpayOrderModificationCleanUpStrategy);  }
@Test public void performShouldRunTheImplementedStrategyJob() { testObj.perform(cleanUpProcessedOrderModificationsCronJobModelMock); verify(worldpayOrderModificationCleanUpStrategy).doCleanUp(anyInt()); }