@Test
  public void shouldSaveSyncError() throws Exception {
    SyncError expectSyncError = new SyncError("errorMessage", SyncType.RnRForm, 1l);
    syncErrorsRepository.save(expectSyncError);

    SyncError actualSyncError =
        syncErrorsRepository.getBySyncTypeAndObjectId(SyncType.RnRForm, 1l).get(0);

    assertThat(expectSyncError.getErrorMessage(), is(actualSyncError.getErrorMessage()));
  }