@Test public void createNewPaymentProcessingAlgorithm() { PaymentProcessingAlgorithm expected = cache.createNewPaymentProcessingAlgorithm(); assertThat(cache.getAlgorithm(), is(expected)); }
@Test public void scheduleCreateOperation() { cache.scheduleCreateOperation(); assertThat( cache.getCrudOperationToBePerformed(), is(new CreateOperation<>(repository, algorithm))); }