@Test
public void errorMessageContainsStatusIfAvailableAndNotSucceeded() {

    // given
    BufferedBulkResult result = createTestBufferedBulkResult(false, new BulkError());
    // when
    String actualMessage = result.getErrorMessage(DEFAULT_TEST_MESSAGE);
    // then
    assertTrue(actualMessage.contains("" + DEFAULT_TEST_STATUS));
}