@Test
public void validateNodeNameTest() {

    NameValidationUtils.validateNodeName("Compute");
    NameValidationUtils.validateNodeName("Compute_2");
    List<String> invalids = Lists.newArrayList("Computé", "Compute-2", "Compute.unix", "Compute 2");
    invalids.forEach(invalid -> {
        expectException(new Callable() {
            @Override
            public Object call() throws Exception {
                NameValidationUtils.validateNodeName(invalid);
                return null;
            }
        }, InvalidNameException.class);
    });
}