static VmNetworkInterface setUpEntityExpectations(
     VmNetworkInterface entity, VmNetworkStatistics statistics, int index, String networkName) {
   expect(entity.getId()).andReturn(GUIDS[index]).anyTimes();
   expect(entity.getVmId()).andReturn(INSTANCE_TYPE_ID).anyTimes();
   expect(entity.getNetworkName()).andReturn(networkName).anyTimes();
   expect(entity.getName()).andReturn(NAMES[index]).anyTimes();
   expect(entity.getMacAddress()).andReturn(ADDRESSES[2]).anyTimes();
   expect(entity.getType()).andReturn(0).anyTimes();
   expect(entity.getSpeed()).andReturn(50).anyTimes();
   return setUpStatisticalEntityExpectations(entity, statistics);
 }