@Test
public void itDrawsAnImageStretchedInBothDimensions() throws Exception
{
NinePatch patch = NinePatch.load(image);
MockGraphics graphics = new MockGraphics();
patch.draw(graphics, 0, 0, 100, 100);
assertEquals(9, graphics.drawnImages.size());
checkDrawnImage(graphics.drawnImages.get(0), new Rectangle(1, 1, 3, 11), new Rectangle(0, 0, 3, 11)); // top left
checkDrawnImage(graphics.drawnImages.get(1), new Rectangle(4, 1, 5, 11), new Rectangle(3, 0, 90, 11)); // top middle