@Test public void delegateCheckMulticastWithTtl() { InetAddress inetAddress = mock(InetAddress.class); byte ttl = 24; managerWithOriginal.checkMulticast(inetAddress, ttl); verify(originalSecurityManager).checkMulticast(inetAddress, ttl); }
@Test public void dontFailWithoutParentForCheckMulticastWithTtl() { InetAddress inetAddress = mock(InetAddress.class); byte ttl = 24; managerWithoutOriginal.checkMulticast(inetAddress, ttl); }