firewallRuleCreateParameters.setEndIPAddress(expectedEndIpAddress);
FirewallRuleCreateResponse firewallRuleCreateResponse = firewallRuleOperations.create(expectedServerName, firewallRuleCreateParameters);
FirewallRule firewallRule = firewallRuleCreateResponse.getFirewallRule();
String firewallRuleName = firewallRule.getName();
firewallRuleToBeRemoved.put(firewallRuleName, expectedServerName);
FirewallRuleUpdateParameters firewallRuleUpdateParameters = new FirewallRuleUpdateParameters();
firewallRuleUpdateParameters.setEndIPAddress(updatedEndIpAddress);
firewallRuleUpdateParameters.setName(expectedRuleName);
firewallRuleUpdateParameters.setStartIPAddress(expectedStartIpAddress);
FirewallRuleUpdateResponse firewallRuleUpdateResponse = firewallRuleOperations.update(expectedServerName, expectedRuleName, firewallRuleUpdateParameters);
// assert
FirewallRule updatedFirewallRule = firewallRuleUpdateResponse.getFirewallRule();
assertEquals(updatedEndIpAddress, updatedFirewallRule.getEndIPAddress());