NetworkInterfaceInfo { public String getName() { return networkInterface.getName(); } NetworkInterfaceInfo(final NetworkInterface networkInterface); String getDisplayName(); String getName(); NetworkInterface getNetworkInterface();  }
@Test public void getNameShouldReturnNameFromNetworkInterface() { when(networkInterface.getName()).thenReturn("eth0"); assertEquals("eth0", networkInterfaceInfo.getName()); }