@Test
public void testGetExtractedText() throws BinaryStoreException {

    String extractedText = "text-that-has-been-extracted";
    ObjectMetadata objMeta = new ObjectMetadata();
    Map<String, String> userMeta = new HashMap<>();
    userMeta.put(S3BinaryStore.EXTRACTED_TEXT_KEY, extractedText);
    objMeta.setUserMetadata(userMeta);
    expect(s3Client.getObjectMetadata(BUCKET, TEST_KEY)).andReturn(objMeta);
    replayAll();
    BinaryValue binaryValue = createBinaryValue(TEST_KEY, TEST_CONTENT);
    String extractValue = s3BinaryStore.getExtractedText(binaryValue);
    assertEquals(extractedText, extractValue);
}