@Test
public void testCoordinatesAfterRotation() {

    Vector2 point = new Vector2(2d, 0d);
    Double rotation = 50 * Math.PI / 180;// rotation of 50 degrees
    DecimalFormat df = new DecimalFormat("0.00", new DecimalFormatSymbols(Locale.ENGLISH));
    assertThat(df.format(Geometry.coordinatesAfterRotation(point, rotation).x)).isEqualTo("1.29");
    assertThat(df.format(Geometry.coordinatesAfterRotation(point, rotation).y)).isEqualTo("1.53");
}