@Test
public void testCreatePrimitive() throws Exception {
final OsmPrimitive p = OsmUtils.createPrimitive("way name=Foo railway=rail");
assertTrue(p instanceof Way);
assertThat(p.keySet().size(), is(2));
assertThat(p.get("name"), is("Foo"));
assertThat(p.get("railway"), is("rail"));
}
@Test(expected = IllegalArgumentException.class)