@Test
public void getSumByPaymentMethodLot() {

    entries = new ArrayList<>();
    entries.add(new LabeledGraphEntry(15, LABEL_1));
    entries.add(new LabeledGraphEntry(3, LABEL_2));
    entries.add(new LabeledGraphEntry(5, LABEL_3));
    entries.add(new LabeledGraphEntry(5, LABEL_4));
    entries.add(new LabeledGraphEntry(2, LABEL_5));
    entries.add(new LabeledGraphEntry(2, LABEL_6));
    when(groupingController.getSummationByPaymentMethodAsGraphEntries(trip)).thenReturn(Single.just(entries));
    List<LabeledGraphEntry> sortedEntries = new ArrayList<>(entries);
    Collections.sort(sortedEntries);
    List<LabeledGraphEntry> expectedEntries = sortedEntries.subList(0, GraphsInteractor.PAYMENT_METHODS_MAX_COUNT);
    expectedEntries.add(new LabeledGraphEntry(2 + 2, context.getString(R.string.graphs_label_others)));
    interactor.getSummationByPaymentMethod(trip)
            .test()
            .assertNoErrors()
            .assertComplete()
            .assertValues(GraphUiIndicator.summationByPaymentMethod(expectedEntries));
}