@Test
public void testTargetAsEnvironment() {

  if (!Shell.WINDOWS) {
    fencer.tryFence(TEST_TARGET, "echo $target_host $target_port");
    Mockito.verify(ShellCommandFencer.LOG).info(
        Mockito.endsWith("echo $ta...rget_port: dummyhost 1234"));
  } else {
    fencer.tryFence(TEST_TARGET, "echo %target_host% %target_port%");
    Mockito.verify(ShellCommandFencer.LOG).info(
        Mockito.endsWith("echo %ta...get_port%: dummyhost 1234"));
  }
}