SearchDocument { String getType() { return type; } SearchDocument(Map<String, Object> document);   }
@Test public void testGetType() throws Exception { assertEquals("license", parser.getType()); }
@Test public void testGetTypeInvalid() throws Exception { document.remove("type"); parser = new SearchDocument(document); assertNotNull(parser.getType()); assertEquals("", parser.getType()); }