@Test
public void thumbnailConditionTest() throws IOException {
ByteArrayOutputStream bous = new ByteArrayOutputStream();
OutputStream out = new ConditionalOutputStream(bous,
new ThumbnailCondition(new ThumbnailService() {
@Override
public UriRef getThumbnailUri(UriRef infoBitUri, Integer width, Integer height, boolean exact) {
Assert.assertEquals(uri, infoBitUri);
Assert.assertEquals(Integer.valueOf(700), width);