@Test
void selectWithView() {

    insertRow(1, "string1", TestEnum.V1);
    insertRow(2, "string2", TestEnum.V2);
    List<EntityView> views = database.select("SELECT string_field as string_label, enum_field as enum_label FROM database_test", EntityView.class);
    assertThat(views).hasSize(2);
    assertThat(views.get(0).enumField).isEqualTo(TestEnum.V1);
    assertThat(views.get(1).enumField).isEqualTo(TestEnum.V2);
}