@Test
public void testDeleteAndUpdateClientPayload() throws Exception {

    //Deleting the Client Payload of Id = 1, Id is transient. it will not serialize and
    // deserialize during retrofit request. It is for just numbering the payload in Table.
    when(mDataManagerClient.deleteAndUpdatePayloads(1, clientCreationTime))
            .thenReturn(Observable.just(clientPayloads));
    syncClientPayloadsPresenter.deleteAndUpdateClientPayload(1, clientCreationTime);
    verify(mSyncClientPayloadsMvpView).showPayloadDeletedAndUpdatePayloads(clientPayloads);
    verify(mSyncClientPayloadsMvpView, never()).showError(R.string.failed_to_update_list);
}