source: class GetTransactionsComputedCallbackImplTest {
  
      private final static String AMOUNT;
      private final static String ERROR;
      @Mock
      private ComputingTransactionsPresenter.View view;
      @Mock
      private TransactionsRatedDataMapper mapper;
      @Mock
      private List<TransactionRatedDomain> list;
      private ComputeTransactionsInteractor.GetTransactionsComputedCallback callbackToTest;
  
      @Test
      public void callbackIsWorkingForOKAndReady() throws Exception {
  
target:         // when it is returned true for the isReady method by default,
          // then we could check 1 iteration appears on each method
          when(view.isReady()).thenReturn(true);
          callbackToTest.onGetTransactionsListOK(list, AMOUNT);
          verify(view, getTimes()).isReady();
          verify(view, getTimes()).computedRatesForTransactions(anyList(), anyString());
          verify(view, getTimes()).visibilityChangesAfterSuccessfulComputedRates();
          verify(mapper, getTimes()).transformToUI(anyList());
      }
  
  }