ConfigPayloadBuilder { public ConfigPayloadBuilder getObject(String name) { ConfigPayloadBuilder p = objectMap.get(name); if (p == null) { validateObject(name); p = new ConfigPayloadBuilder(getStructDef(name)); objectMap.put(name, p); } return p; } ConfigPayloadBuilder();  ConfigPayloadBuilder(ConfigDefinition configDefinition); private  ConfigPayloadBuilder(String value); private  ConfigPayloadBuilder(ConfigDefinition configDefinition, String value); private  ConfigPayloadBuilder(ConfigPayloadBuilder other);  ConfigPayloadBuilder(ConfigPayload payload); void setField(String name, String value); ConfigPayloadBuilder getObject(String name); Array getArray(String name); void resolve(Cursor parent); ConfigPayloadBuilder override(ConfigPayloadBuilder other); String getValue(); void setValue(String value); MapBuilder getMap(String name); ConfigDefinition getConfigDefinition();  }
@Test(expected=IllegalArgumentException.class) public void require_that_structs_must_exist() { builderWithDef.getObject("structdoesnotexist"); }