@Test
public void testBMP() throws Exception {

    Metadata metadata = new Metadata();
    metadata.set(Metadata.CONTENT_TYPE, "image/bmp");
    try (InputStream stream = getClass().getResourceAsStream("/test-documents/testBMP.bmp")) {
        parser.parse(stream, new DefaultHandler(), metadata, new ParseContext());
    }
    assertEquals("75", metadata.get("height"));
    assertEquals("100", metadata.get("width"));
    assertEquals("8 8 8", metadata.get("Data BitsPerSample"));
    assertEquals("1.0", metadata.get("Dimension PixelAspectRatio"));
    //TODO: figure out why we're getting 0.35273367 in Ubuntu, but not Windows
    //assertEquals("0", metadata.get("Dimension VerticalPhysicalPixelSpacing"));
    //assertEquals("0", metadata.get("Dimension HorizontalPhysicalPixelSpacing"));
    assertEquals("BI_RGB", metadata.get("Compression CompressionTypeName"));
    assertEquals("image/bmp", metadata.get("Content-Type"));
    assertEquals("100", metadata.get(Metadata.IMAGE_WIDTH));
    assertEquals("75", metadata.get(Metadata.IMAGE_LENGTH));
    assertEquals("8 8 8", metadata.get(Metadata.BITS_PER_SAMPLE));
}