@Test
public void testGetStoredMimeType() throws BinaryStoreException {

    ObjectMetadata objMeta = new ObjectMetadata();
    objMeta.setContentType(TEST_MIME);
    objMeta.addUserMetadata(S3BinaryStore.USER_MIME_TYPE_KEY, String.valueOf(true));
    expect(s3Client.getObjectMetadata(BUCKET, TEST_KEY)).andReturn(objMeta);
    replayAll();
    BinaryValue binaryValue = createBinaryValue(TEST_KEY, TEST_CONTENT);
    String mimeType = s3BinaryStore.getStoredMimeType(binaryValue);
    assertEquals(TEST_MIME, mimeType);
}