@Test
    public void testGetTighterRange() {
        Range range1 = new Range(-5, 5);
        Range range2 = new Range(-2, 2);
        Range result = GraphDeveloper.getTigtherRange(range1, range2);
        assertEquals(-2, result.getMin(), DELTA);
        assertEquals(2, result.getMax(), DELTA);

        range1 = new Range(-5, 5);
        range2 = new Range(-2, 10);
        result = GraphDeveloper.getTigtherRange(range1, range2);
        assertEquals(-2, result.getMin(), DELTA);
        assertEquals(5, result.getMax(), DELTA);

        range1 = new Range(-500, 500);
        range2 = new Range(-2, 10);
        result = GraphDeveloper.getTigtherRange(range1, range2);
        assertEquals(-2, result.getMin(), DELTA);
        assertEquals(10, result.getMax(), DELTA);

        range1 = new Range(-2, 10);
        range2 = new Range(-500, 500);
        result = GraphDeveloper.getTigtherRange(range1, range2);
        assertEquals(-2, result.getMin(), DELTA);
        assertEquals(10, result.getMax(), DELTA);
    }