H2EnumValuesExtractor { public List<String> extract(String content) { return enumExtractor.extract(content); }  List<String> extract(String content);  }
@Test public void nothing() { assertThat(new H2EnumValuesExtractor().extract("nothing")) .isEmpty(); }
@Test public void strings() { assertThat(new H2EnumValuesExtractor().extract("(CONTENT_TYPE IN('a', 'b', 'c'))")) .hasSize(3) .containsExactly("a", "b", "c"); assertThat(new H2EnumValuesExtractor().extract("(CONTENT_TYPE IN('a ','b','c'))")) .hasSize(3) .containsExactly("a", "b", "c"); }
@Test public void numerics() { assertThat(new H2EnumValuesExtractor().extract("(ONE_TWO_OR_THREE IN(1, 2, 3))")) .hasSize(3) .containsExactly("1", "2", "3"); }