### Question:
Bpmn2Resource extends XMLResourceImpl { public void load(Node node) throws IOException { super.load(node, createLoadOptions()); } protected  Bpmn2Resource(URI uri); void load(Node node); void load(String contents); String toBPMN2();  }### Answer:
@Test public void testLoad() throws Exception { XMLParser p = mock(XMLParser.class); when(tested.createParser()).thenReturn(p); Document doc = mock(Document.class); when(p.parse(eq("someContent"))).thenReturn(doc); tested.load("someContent"); verify(tested, times(1)).load(eq(doc)); }