public static void validateHostAndPort(final String type, final PluginConfiguration pluginConfig) {
        validateHost(type, pluginConfig);
        validatePort(type, pluginConfig);
    }
@Test
    void assertValidateHostAndPortSuccess() {
        PluginConfigurationValidator.validateHostAndPort("foo_type", new PluginConfiguration("localhost", 8080, "pwd", null));
    }