@Test
public void testGetInputStream() throws BinaryStoreException, IOException {

    S3Object s3Object = new S3Object();
    s3Object.setObjectContent(new StringInputStream(TEST_CONTENT));
    expect(s3Client.getObject(BUCKET, TEST_KEY)).andReturn(s3Object);
    replayAll();
    InputStream resultStream = s3BinaryStore.getInputStream(new BinaryKey(TEST_KEY));
    assertEquals(TEST_CONTENT, IOUtils.toString(resultStream));
}