public static void assertSupportedProtocols(Set<String> expected,String[] protocols){
  Set<String> remainingProtocols=assertValidProtocols(expected,protocols);
  assertEquals("Missing protocols",Collections.EMPTY_SET,remainingProtocols);
  assertEquals(expected.size(),protocols.length);
}

public static void assertSupportedProtocols ( Set < String > expected , String [ ] protocols ) { Set < String > remainingProtocols = assertValidProtocols ( expected , protocols ) ; assertEquals ( "Missing protocols" , Collections . EMPTY_SET , remainingProtocols ) ; assertEquals ( expected . size ( ) , protocols . length ) ; }
after using assertvalidprotocols on protocols , assertsupportedprotocols additionally verifies that all supported protocols where in the input array .
