    @Test
    public void parseSegments() {

        //given
        InputStream is = this.getClass().getResourceAsStream(
                "/segments.json");

        //when
        List<Segment> segs = Segment.parseSegments(is);

        //then
        assertNotNull(segs);
        assertEquals(3, segs.size());
        assertEquals(5, segs.get(2).coords.size());
        assertEquals("80", segs.get(2).name);
        assertNull(segs.get(0).getColorId());
    }