public void testGetPosition()
{
assertEquals(dialog.getPosition().getJavascriptOption().toString(),
"{my: 'center', at: 'center', of: 'window'}");
dialog.setPosition(new PositionOptions()
.setMy(new PositionAlignmentOptions(PositionRelation.RIGHT))
.setAt(new PositionAlignmentOptions(PositionRelation.CENTER, 10, PositionRelation.BOTTOM, -10))
.setOf("#someId")
);
assertEquals(dialog.getPosition().getJavascriptOption().toString(),
"{my: 'right', at: 'center+10 bottom-10', of: '#someId'}");
}