@Test
public void testStoreExtractedTextTooLong() {

    StringBuilder textBuilder = new StringBuilder();
    for (int i = 0; i < 2001; i++) {
        textBuilder.append("a");
    }
    String extractedText = textBuilder.toString();
    replayAll();
    BinaryValue binaryValue = createBinaryValue(TEST_KEY, TEST_CONTENT);
    try {
        s3BinaryStore.storeExtractedText(binaryValue, extractedText);
        fail("Exception expected due to long extracted text value");
    } catch(BinaryStoreException e) {
        assertNotNull(e);
    }
}