### Question:
SpatialUtils { public static Spatial convertToAbsolute(Spatial parent, Spatial child) { float x = child.getX(); float y = child.getY(); float angle = child.getAngle(); child.setPosition(x + parent.getX(), y + parent.getY()); child.setAngle(angle + parent.getAngle()); return child; }  static Spatial convertToLocal(Spatial parent, Spatial child); static Spatial convertToAbsolute(Spatial parent, Spatial child);  }### Answer:
@Test public void testConvertToAbsoluteSpatial() { Spatial parent = new SpatialImpl(20, 50, 1f, 1f, 0f); Spatial child = new SpatialImpl(-20f, -50f, 1f, 1f, 0f); SpatialUtils.convertToAbsolute(parent, child); assertThat(child.getX(), IsEqual.equalTo(0f)); assertThat(child.getY(), IsEqual.equalTo(0f)); }