@Test
public void testBashQuote() {

  assertEquals("'foobar'", Shell.bashQuote("foobar"));
  assertEquals("'foo'\\''bar'", Shell.bashQuote("foo'bar"));
  assertEquals("''\\''foo'\\''bar'\\'''", Shell.bashQuote("'foo'bar'"));
}