MarginInstruction instruction = new MarginInstruction( new Percentage( BigDecimal.valueOf( 10 ) ),
new Percentage( BigDecimal.valueOf( 10 ) ),
new Percentage( BigDecimal.valueOf( 10 ) ),
new Percentage( BigDecimal.valueOf( 10 ) ) );
Bounds bounds = instruction.computeBounds( new Bounds( 0, 0, 100, 100 ), 16 );
assertEquals( 10, bounds.getX() );
assertEquals( 10, bounds.getY() );
assertEquals( 80, bounds.getWidth() );
assertEquals( 80, bounds.getHeight() );
}