@Test
void selectOneWithView() {

    insertRow(1, "string1", TestEnum.V1);
    EntityView view = database.selectOne("SELECT string_field as string_label, enum_field as enum_label FROM database_test where id = ?", EntityView.class, 1).orElseThrow();
    assertThat(view.enumField).isEqualTo(TestEnum.V1);
    assertThat(view.stringField).isEqualTo("string1");
}