}
public TestUtils(String toolName, InputStream in) throws Exception {
ToolSpec spec = new ToolSpec(in, false);
CommandLineParser parser = new CommandLineParser(spec);
String usage = parser.getUsage();
mUsage = "Usage : " + toolName + " " + usage;
mDetailedUsage = toolName + " " + usage + System.getProperty("line.separator")
+ System.getProperty("line.separator");
mDetailedUsage += "Options : " + System.getProperty("line.separator") + parser.getDetailedUsage()
+ System.getProperty("line.separator");
mDetailedUsage += parser.getToolUsage() + System.getProperty("line.separator")
+ System.getProperty("line.separator");
}