binary.setValue(text.getBytes());
depot.setTextData(binary);
}
private void checkText(ImageDepot depot) {
Base64Binary binary = depot.getTextData();
assertTrue(binary != null);
String contentType = binary.getContentType();
assertTrue("".equals(contentType));
byte[] bytes = binary.getValue();
assertTrue(bytes != null);
String theText = new String(bytes);
assertTrue(text.equals(theText));
}