@Test public void testWarnIfLocalhost() throws Exception { assertFalse(Machines.warnIfLocalhost(ImmutableList.of(create(sshMachineSpec)), "my message")); // Visual inspection test - expect a log.warn assertTrue(Machines.warnIfLocalhost(ImmutableList.of(create(localMachineSpec)), "my message")); } }