@Test
public void validateApplicationNameTest() {

    NameValidationUtils.validateApplicationName("app");
    NameValidationUtils.validateApplicationName("app_2");
    NameValidationUtils.validateApplicationName("app 2");
    NameValidationUtils.validateApplicationName("app é 2");
    List<String> invalids = Lists.newArrayList("app/hehe", "app\\dqdv", "app\\/dqdv");
    invalids.forEach(invalid -> {
        expectException(new Callable() {
            @Override
            public Object call() throws Exception {
                NameValidationUtils.validateApplicationName(invalid);
                return null;
            }
        }, InvalidNameException.class);
    });
}