@Test
public void errorMessageContainsInfoWhenItemsListIsEmptyAndErrorsIsTrue() {

    // given
    String expectedMessage = BufferedBulkResult.NO_FAILED_ITEMS_MESSAGE;
    BufferedBulkResult result = createTestBufferedBulkResult(true, null, new ArrayList<>());
    // when
    String actualMessage = result.getErrorMessage(DEFAULT_TEST_MESSAGE);
    // then
    assertTrue(actualMessage.contains(expectedMessage));
}