@Test
public void testRightEdge() {

    final Bounds visibleBounds = new BaseBounds( -500,
                                                 -500,
                                                 1000,
                                                 1000 );
    final Transform test = new Transform().translate( -200.0,
                                                      0.0 );
    final Transform result = restriction.adjust( test,
                                                 visibleBounds );
    assertNotNull( result );
    assertEquals( 0.0,
                  result.getTranslateX(),
                  0.0 );
    assertEquals( 0.0,
                  result.getTranslateY(),
                  0.0 );
    //View.getBounds() is called once in BoundaryTransformMediator's constructor and once in it's adjust method.
    verify( view,
            times( 2 ) ).getBounds();
}