public Location setX(double x) {
        return new Location(extent, position.withX(x), yaw, pitch);
    }
@Test
    public void testSetX() throws Exception {
        World world = mock(World.class);
        Location location1 = new Location(world, Vector3.ZERO);
        Location location2 = location1.setX(TEST_VALUE);
        assertEquals(0, location1.getX(), EPSILON);
        assertEquals(TEST_VALUE, location2.getX(), EPSILON);
        assertEquals(0, location2.getY(), EPSILON);
        assertEquals(0, location2.getZ(), EPSILON);
    }