DataSet hull = builder.build();
assertNotNull(hull);
assertEquals(1, hull.getWays().size());
assertEquals(2, hull.getNodes().size());
OsmPrimitive p = hull.getPrimitiveById(1,OsmPrimitiveType.NODE);
assertNotNull(p);
assertEquals(p.getClass(), Node.class);
p = hull.getPrimitiveById(2, OsmPrimitiveType.NODE);
assertNotNull(p);
assertEquals(p.getClass(), Node.class);
p = hull.getPrimitiveById(3,OsmPrimitiveType.WAY);
assertNotNull(p);
assertEquals(p.getClass(), Way.class);
}