@Test
public void testMeasureSource4_3_in_16_9() {

    RectangleF ui = new RectangleF(0,0,1920, 1920 / AspectHelper.ar_16_9);
    RectangleF vid = new RectangleF(0,0,640, 640 / AspectHelper.ar_4_3);
    System.out.println("UI: " + ui);
    System.out.println("VID: " + vid);
    assertTrue(AspectHelper.is_16_9(ui.getAR()));
    assertTrue(AspectHelper.is_4_3(vid.getAR()));
    VideoInfo vi = new VideoInfo();
    vi.update(vid.asIntRect().width, vid.asIntRect().height, vid.getAR());
    vi.updateARMode("Source");
    AspectModeManager amm = new AspectModeManager();
    Rectangle destVid = amm.doMeasureSource(vi, ui).asIntRect();
    System.out.println("DESTVID: " + destVid);
    // destination height should be the same
    assertEquals(ui.asIntRect().height, destVid.height);
    // sum of x * 2 + width should be ui width
    assertEquals(destVid.x * 2 + destVid.width, ui.asIntRect().width);
}