public static void validateHostAndPort(final String type, final PluginConfiguration pluginConfig) {
        validateHost(type, pluginConfig);
        validatePort(type, pluginConfig);
    }
@Test
    void assertValidateHostAndPortWhenHostIsEmpty() {
        assertThrows(IllegalArgumentException.class, () -> PluginConfigurationValidator.validateHostAndPort("foo_type", new PluginConfiguration("", 8080, "pwd", null)));
    }