@Test
public void testOpenGraphMetadata() throws Exception {

    String test1 =
            "<html><head><meta property=\"og:description\""
                    + " content=\"some description\" />"
                    + "<meta property=\"og:image\" content=\"http://example.com/image1.jpg\" />"
                    + "<meta property=\"og:image\" content=\"http://example.com/image2.jpg\" />"
                    + "<title>hello</title>"
                    + "</head><body></body></html>";
    Metadata metadata = new Metadata();
    new HtmlParser().parse(
            new ByteArrayInputStream(test1.getBytes(ISO_8859_1)),
            new BodyContentHandler(), metadata, new ParseContext());
    assertEquals("some description", metadata.get("og:description"));
    assertTrue(metadata.isMultiValued("og:image"));
}