@Test
public void parser_roundtrips() {
final Parser<DomainModel> parser = RestfulRequest.DomainModel.parser();
for (final DomainModel domainModel : DomainModel.values()) {
final String asString = parser.asString(domainModel);
final DomainModel roundtripped = parser.valueOf(asString);
assertSame(roundtripped, domainModel);
}
}