@Test
public void testTranslate() throws Exception {

    RectangleF r = new RectangleF(10,10,90,90);
    Rectangle test = r.translateImmutable(new RectangleF(0,0,100,100), new RectangleF(0,0,10,10)).asIntRect();
    assertEquals(1, test.x);
    assertEquals(1, test.y);
    assertEquals(9, test.width);
    assertEquals(9, test.height);
}