### Question:
OSMNode extends OSMWithTags { public int getCapacity() throws NumberFormatException { String capacity = getTag("capacity"); if (capacity == null) { return 0; } return Integer.parseInt(getTag("capacity")); }  String toString(); int getCapacity(); boolean isMultiLevel(); boolean hasTrafficLight();  }### Answer:
@Test public void testGetCapacity() { OSMNode node = new OSMNode(); assertFalse(node.hasTag("capacity")); assertEquals(0, node.getCapacity()); try { node.addTag("capacity", "foobie"); node.getCapacity(); assertFalse(true); } catch (NumberFormatException e) {} node.addTag("capacity", "10"); assertTrue(node.hasTag("capacity")); assertEquals(10, node.getCapacity()); }