@Test(expected = ParameterException.class)
public void testValidateReadOnlyOutputDirectory() throws Exception {

	File readOnlyDir = temporaryFolder.newFolder();
	readOnlyDir.setReadable(false);
	readOnlyDir.setWritable(false);
	Main.main(
		new String[] {
			"-C", _COMPANY_ID, "-O", readOnlyDir.getAbsolutePath(), "-P",
			"foo.properties", "-S", _SCHEMA_NAME
		});
}