@Test
public void shouldThrowForNonDataenumClassName() throws Exception {

  assertThatThrownBy(
          () -> OutputSpecFactory.toOutputClassName(ClassName.get("com.spotify", "My")))
      .isInstanceOf(ParserException.class)
      .hasMessageContaining("Bad name");
}