@Test
public void testDeleteAndUpdateClientPayloadFails() {

    when(mDataManagerClient.deleteAndUpdatePayloads(1, clientCreationTime))
            .thenReturn(Observable.<List<ClientPayload>>error(new RuntimeException()));
    syncClientPayloadsPresenter.deleteAndUpdateClientPayload(1, clientCreationTime);
    verify(mSyncClientPayloadsMvpView).showError(R.string.failed_to_update_list);
    verify(mSyncClientPayloadsMvpView, never())
            .showPayloadDeletedAndUpdatePayloads(clientPayloads);
}