@Test
public void testToAwtPoint() throws Exception {

    Point2D p = VecmathUtil.toAwtPoint(new Point2d(4, 2));
    assertThat(p.getX(), closeTo(4d, 0.01));
    assertThat(p.getY(), closeTo(2d, 0.01));
}