@Test
public void configureNicDhcpAndDnsTestNotExternalDhcp() {

    StringBuilder buf = new StringBuilder();
    DataCenterVO dc = configureDataCenterDns("internalDns1", "internalDns2", "dns1", "dns2");
    VirtualMachineProfile profile = configureDcProfileAndVm(dc);
    spy.configureNicDhcpAndDns(profile, buf, false);
    Assert.assertEquals(" internaldns1=internalDns1 internaldns2=internalDns2 dns1=dns1 dns2=dns2", buf.toString());
}