private void assertMass(Mass mass, double x, double y, Type type) {
        assertEquals("Mass type = " + type, x, mass.getX(), DELTA);
        assertEquals("Mass type = " + type, y, mass.getY(), DELTA);
        assertEquals(type, mass.getType());
    }