@Test
public void testLoadDatabaseClientPayloadFails() {

    when(mDataManagerClient.getAllDatabaseClientPayload())
            .thenReturn(Observable.<List<ClientPayload>>error(new RuntimeException()));
    syncClientPayloadsPresenter.loadDatabaseClientPayload();
    verify(mSyncClientPayloadsMvpView).showError(R.string.failed_to_load_clientpayload);
    verify(mSyncClientPayloadsMvpView, never()).showPayloads(clientPayloads);
}