@Test
public void testConfigMachineNameInvalidChars() throws Exception {

	File localDir = new File("/some/folder");
	ConfigTO configTO = new ConfigTO();
	RepoTO repoTO = new RepoTO();
	configTO.setMachineName("invalid machine name");
	// Run!
	try {
		new Config(localDir, configTO, repoTO);
		fail("Machine name should not have been accepted.");
	}
	catch (ConfigException e) {
		TestAssertUtil.assertErrorStackTraceContains("Machine name", e);
	}
}