private void validateRemovalOfPublicNetworkInterface(String instanceId,int desiredNetworkInterfaceStateCount) throws Throwable {
  if (this.isAwsClientMock) {
    return;
  }
  ComputeState stoppedComputeState=getComputeByAWSId(this.host,instanceId);
  assertNotNull(stoppedComputeState);
  for (  String networkLink : stoppedComputeState.networkInterfaceLinks) {
    assertFalse(networkLink.contains(PUBLIC_INTERFACE));
  }
  validateNetworkInterfaceCount(desiredNetworkInterfaceStateCount);
}

private void validateRemovalOfPublicNetworkInterface ( String instanceId , int desiredNetworkInterfaceStateCount ) throws Throwable { if ( this . isAwsClientMock ) { return ; } ComputeState stoppedComputeState = getComputeByAWSId ( this . host , instanceId ) ; assertNotNull ( stoppedComputeState ) ; for ( String networkLink : stoppedComputeState . networkInterfaceLinks ) { assertFalse ( networkLink . contains ( PUBLIC_INTERFACE ) ) ; } validateNetworkInterfaceCount ( desiredNetworkInterfaceStateCount ) ; }
validates the public network interface and its document have been removed .
