@Test
    public void testGetMassesBetweenYRange() {
        Mass input1 = new Mass(0, 2, INPUT);
        Mass input2 = new Mass(0, 10, INPUT);
        Mass input3 = new Mass(0, 12, INPUT);
        Mass input4 = new Mass(0, 20, INPUT);
        parser.inputs.add(input1);
        parser.inputs.add(input2);
        parser.inputs.add(input3);
        parser.inputs.add(input4);

        List<Mass> inputs = parser.getMassesBetweenYRange(1, 11);
        assertEquals(2, inputs.size());
        assertSame(input1, inputs.get(0));
        assertSame(input2, inputs.get(1));

        inputs = parser.getMassesBetweenYRange(12, 20);
        assertEquals(2, inputs.size());
        assertSame(input3, inputs.get(0));
        assertSame(input4, inputs.get(1));
    }