    @Test
    public void shouldHandleJavaNetworkInterfaceThrowingExceptionsInIsLoopBack() throws Exception {

        when(networkInterface1.isLoopback()).thenThrow(new SocketException("Shrug"));

        Optional<NetworkInterface> en1 = provider.networkInterfaceById("en0");
        assertTrue(en1.isPresent());
        assertFalse(en1.get().isLoopback());
    }