@Test
public void testMouseShape() throws IOException {

    final String mouse = "+--------------+\n" 
                       + "|..........*X..|\n"  
                       + "|....XXXX.XX...|\n"  
                       + "|...XXXXXXXX...|\n"
                       + "|.XXXXXXXXXXX..|\n"
                       + "|XX.XXXXXXX.XX.|\n"
                       + "|X...XXXXXXXXXX|\n"
                       + "|XX............|\n"
                       + "|.XXX.XX.......|\n"
                       + "|...XXX........|\n"
                       + "+--------------+\n";
    ShapeTable st = ShapeGenerator.generate(getClass().getResourceAsStream("/mouse-bitmap.st"));
    assertNotNull(st);
    assertEquals(1, st.shapes.size());
    // Verify we read the shape correctly...
    Shape shape = st.shapes.get(0);
    assertNotNull(shape);
    assertShapeMatches(mouse, shape);
    
    // Run vector transform to be certain we're ok
    Shape vectorShape = shape.toVector();
    assertNotNull(vectorShape);
    assertShapeMatches(mouse, vectorShape);
}