@Test
public void shouldEvaluateAsInvalidGivenDownInterface() throws Exception {

  when(mockNetworkInterface.isLoopback()).thenReturn(false);
  when(mockNetworkInterface.isUp()).thenReturn(false);
  boolean isValid = networkInterfaceValidator.isValid(mockNetworkInterface);
  assertThat(isValid).isFalse();
}