public CompositePart(String name, int xDisplacement, int yDisplacement)
    {
        this.name = name;
        this.xDisplacement = xDisplacement;
        this.yDisplacement = yDisplacement;
    }
@Test
    void testCompositePart()
    {
        CompositePart compositePart = new CompositePart("name", 10, 20);
        assertEquals("name", compositePart.getName());
        assertEquals(10, compositePart.getXDisplacement());
        assertEquals(20, compositePart.getYDisplacement());
    }