@Test
public void findDMNModel() {

    List<String> pathToFind = Arrays.asList(new StringBuilder("to/find").reverse().toString().split("/"));
    List<DMNModel> models = Stream.of("this/should/not/match", "find", "something/to/find")
            .map(this::createDMNModelMock).collect(Collectors.toList());
    DMNSimulationUtils.findDMNModel(models, pathToFind, 1);
    List<String> impossibleToFind = Arrays.asList(new StringBuilder("not/find").reverse().toString().split("/"));
    Assertions.assertThatThrownBy(() -> DMNSimulationUtils.findDMNModel(models, impossibleToFind, 1))
            .isInstanceOf(ImpossibleToFindDMNException.class)
            .hasMessage("Retrieving the DMNModel has failed. Make sure the used DMN asset does not " +
                                "produce any compilation errors and that the project does not " +
                                "contain multiple DMN assets with the same name and namespace. " +
                                "In addition, check if the reference to the DMN file is correct " +
                                "in the Settings panel. " +
                                "After addressing the issues, build the project again.");
}