@Test
public void testCommandAbbreviation() {

  assertEquals("a...f", ShellCommandFencer.abbreviate("abcdef", 5));
  assertEquals("abcdef", ShellCommandFencer.abbreviate("abcdef", 6));
  assertEquals("abcdef", ShellCommandFencer.abbreviate("abcdef", 7));
  assertEquals("a...g", ShellCommandFencer.abbreviate("abcdefg", 5));
  assertEquals("a...h", ShellCommandFencer.abbreviate("abcdefgh", 5));
  assertEquals("a...gh", ShellCommandFencer.abbreviate("abcdefgh", 6));
  assertEquals("ab...gh", ShellCommandFencer.abbreviate("abcdefgh", 7));
}