/**
* Confirms that the "create"-method does validate the option list.
* @throws CodebaseCreationError
*/
public void testValidationCreate() throws Exception {
FileCodebaseCreator cc = new FileCodebaseCreator();
// Validate parameters.
ImmutableMap<String, String> s;
try {
cc.create(ImmutableMap.<String, String>of());
fail("Method does not check for required options.");
} catch (CodebaseCreationError expected) {}
try {
cc.create(ImmutableMap.<String, String>of("path", "FooBar", "unknown", "123"));
fail("Method does not check for unsupported options.");
} catch (MoeProblem expected) {}
}