@Test
public void testDWG2010CustomPropertiesParser() throws Exception {

    // Check that standard parsing works
    InputStream testInput = DWGParserTest.class.getResourceAsStream(
            "/test-documents/testDWG2010_custom_props.dwg");
    testParser(testInput);
    
    // Check that custom properties with alternate padding work
    try (InputStream input = DWGParserTest.class.getResourceAsStream(
            "/test-documents/testDWG2010_custom_props.dwg")) {
        Metadata metadata = new Metadata();
        ContentHandler handler = new BodyContentHandler();
        new DWGParser().parse(input, handler, metadata, null);
        assertEquals("valueforcustomprop1",
                metadata.get("customprop1"));
        assertEquals("valueforcustomprop2",
                metadata.get("customprop2"));
    }
}