final Hits hits = client.search(query, new String[] { index.getName() }, 10);
assertNotNull(hits);
assertEquals(1, hits.getHits().size());
final Hit hit = hits.getHits().get(0);
final MapWritable details = client.getDetails(hit);
final Set<Writable> keySet = details.keySet();
assertEquals(1, keySet.size());
final Writable writable = details.get(new Text(binaryFieldName));
assertNotNull(writable);
assertThat(writable, instanceOf(BytesWritable.class));
BytesWritable bytesWritable = (BytesWritable) writable;