PathnamePattern.clearCache();
BjorneContext context = new TestBjorneContext();
Assert.assertEquals(true, context.isGlobbing());
Assert.assertEquals(true, context.isTildeExpansion());
if (new File("../README.txt").exists()) {
CommandLine expansion = context.buildCommandLine(new BjorneToken("../README.*"));
checkExpansion(expansion, new String[] {"../README.txt"});
expansion = context.buildCommandLine(new BjorneToken("../README.\\*"));
checkExpansion(expansion, new String[] {"../README.*"});
expansion = context.buildCommandLine(new BjorneToken("\"../README.*\""));
checkExpansion(expansion, new String[] {"../README.*"});
expansion = context.buildCommandLine(new BjorneToken("\'../README.*\'"));
checkExpansion(expansion, new String[] {"../README.*"});
context.setGlobbing(false);
expansion = context.buildCommandLine(new BjorneToken("../README.*"));
checkExpansion(expansion, new String[] {"../README.*"});
} else {
System.err.println("skipping 'glob' tests ... no ../README.txt");
}