@Test
    public void testAddMasses() {
        assertEquals(0, graph.masses.size());
        graph.addMasses(mass1);
        assertEquals(1, graph.masses.size());
        assertSame(mass1, graph.masses.get(0));
    }