OsmUser implements Storeable { public int getId() { return id; } OsmUser(int id, String userName);  OsmUser(StoreReader sr, StoreClassRegister scr); void store(StoreWriter sw, StoreClassRegister scr); @Override boolean equals(Object o); @Override int hashCode(); int getId(); String getName(); static final OsmUser NONE; }
@Test(expected = OsmosisRuntimeException.class) public final void testGetInstancePreventsNoneUser() { new OsmUser(OsmUser.NONE.getId(), "MyNoneUser"); }