@Override
    public int getPort(final String alias) {
        if(StringUtils.isBlank(alias)) {
            return -1;
        }
        return configuration.lookup(alias).getPort();
    }
@Test
    public void testPort() {
        OpenSSHHostnameConfigurator c = new OpenSSHHostnameConfigurator(
                new OpenSshConfig(
                        new Local("src/test/resources", "openssh/config")));
        assertEquals(555, c.getPort("portalias"));
        assertEquals(-1, c.getPort(null));
    }