### Question:
ResourceIdParser { public String getResource(String resourceId) { return getMatch(m_resourcePattern.matcher(resourceId)); } ResourceIdParser(); String getNodeId(String resourceId); String getResource(String resourceId);  }### Answer:
@Test public void testGetResource() { String resourceId = "node[7].responseTime[172.20.1.5]"; ResourceIdParser parser = new ResourceIdParser(); assertEquals("172.20.1.5", parser.getResource(resourceId)); }