@Test
void parseSingleNodeList() {

    final String version = "1.2.3";
    final Node n = mock(Node.class);
    when(n.getTextContent()).thenReturn(version);
    final NodeList l = mock(NodeList.class);
    when(l.getLength()).thenReturn(1);
    when(l.item(eq(0))).thenReturn(n);
    final List<String> actual = MavenMetadataParser.extractItems(l);
    assertThat(actual).containsExactly(version);
}