HappyExtendingNothing id = id(HappyExtendingNothing.class);
assertTrue(id instanceof Serializable);
assertTrue(id instanceof MapId);
MapId mapid = (MapId) id;
assertNull(id.string());
assertNull(id.number());
assertNull(id.getString());
assertNull(id.getNumber());
id.setNumber(i);
assertEquals(i, id.getNumber());
assertEquals(i, id.number());
assertEquals(i, mapid.get("number"));
HappyExtendingNothing returned = null;
returned = id.number(i = r.nextInt());
assertSame(returned, id);
assertEquals(i, id.getNumber());
assertEquals(i, id.number());
assertEquals(i, mapid.get("number"));
mapid.put("number", i = r.nextInt());
assertEquals(i, id.getNumber());
assertEquals(i, id.number());
assertEquals(i, mapid.get("number"));
id.setString(s);
assertEquals(s, id.getString());
assertEquals(s, id.string());
assertEquals(s, mapid.get("string"));
returned = id.string(s = "" + r.nextInt());
assertSame(returned, id);
assertEquals(s, id.getString());
assertEquals(s, id.string());
assertEquals(s, mapid.get("string"));
returned = id.withString(s = "" + r.nextInt());
assertSame(returned, id);
assertEquals(s, id.getString());
assertEquals(s, id.string());
assertEquals(s, mapid.get("string"));
mapid.put("string", s = "" + r.nextInt());
assertEquals(s, id.getString());
assertEquals(s, id.string());
assertEquals(s, mapid.get("string"));
id.setString(null);
assertNull(id.getString());
assertNull(id.string());
assertNull(mapid.get("string"));
id.setNumber(null);
assertNull(id.getNumber());
assertNull(id.number());
assertNull(mapid.get("number"));
}