// change the bounding box
find.setAnchorType(AnchorType.TO_CHARACTER);
// validate
ControlStyleHandler frameStyleHandler = find.getDrawControl()
.getStyleHandler();
GraphicProperties graphicPropertiesForWrite = frameStyleHandler
.getGraphicPropertiesForWrite();
Assert.assertEquals(VerticalRelative.PARAGRAPH,
graphicPropertiesForWrite.getVerticalRelative());
Assert.assertEquals(FrameVerticalPosition.TOP,
graphicPropertiesForWrite.getVerticalPosition());
Assert.assertEquals(HorizontalRelative.PARAGRAPH,
graphicPropertiesForWrite.getHorizontalRelative());
Assert.assertEquals(FrameHorizontalPosition.CENTER,
graphicPropertiesForWrite.getHorizontalPosition());
textDoc.save(ResourceUtilities
.newTestOutputFile("TestSetRadioButtonAnchorType.odt"));
} catch (Exception e) {
Logger.getLogger(RadioButtonTest.class.getName()).log(Level.SEVERE,