AndroidNetworkInterfaceProvider implements NetworkInterfaceProvider { @Override public Collection<NetworkInterface> getNetworkInterfaces() throws SocketException { return Collections.list(NetworkInterface.getNetworkInterfaces()); } @Inject  AndroidNetworkInterfaceProvider(); @Override Collection<NetworkInterface> getNetworkInterfaces();  }
@Test public void shouldObtainAValidNetworkInterfaceCollection() throws Exception { Collection<NetworkInterface> networkInterfaces = androidNetworkInterfaceProvider.getNetworkInterfaces(); assertThat(networkInterfaces).isNotNull(); assertThat(networkInterfaces).isInstanceOf(Collection.class); }