@Test
public void testParseTriangle() throws Exception {

    PathParser.parse("M250,150L150,350L350,350Z", path);
    //draw triangle
    verify(path, times(2)).moveTo(250.0f, 150.0f);
    verify(path).lineTo(150.0f, 350.0f);
    verify(path).lineTo(350.0f, 350.0f);
    verify(path).close();
}