@Test
public void configureIpAndMaskOnNicWithIpAddressNullOrNotNullTestIpAddressNull() {

    spy.ipAddressInternet = "ipAddressInternet";
    spy.maskForIpAddressInternet = "maskForIpAddressInternet";
    StringBuilder buf = new StringBuilder();
    NicProfile nic = Mockito.mock(NicProfile.class);
    Mockito.when(nic.getIPv4Address()).thenReturn(null);
    spy.configureIpAndMaskOnNicWithIpAddressNullOrNotNull(buf, nic, 0);
    Assert.assertEquals(" eth0ip=ipAddressInternet eth0mask=maskForIpAddressInternet", buf.toString());
}