@Test
public void testEnumParser() {

    Parser<TsFrequency> p = Parsers.enumParser(TsFrequency.class);
    assertCompliance(p);
    assertThat(p.parse("Monthly")).isEqualTo(TsFrequency.Monthly);
    assertThat(p.parse("hello")).isNull();
}