### Question:
AmazonIpRuleManager implements IpRuleManager { @Override public IpRuleSet getIpRuleSet( final String name ) { Collection<IpRule> inbound = getRules( name, true ); Collection<IpRule> outbound = getRules( name, false ); BasicIpRuleSet ruleSet = new BasicIpRuleSet(); ruleSet.setName( name ); for( IpRule rule: inbound ) { ruleSet.addInboundRule( rule ); } for( IpRule rule: outbound ) { ruleSet.addOutboundRule( rule ); } return ruleSet; } @Inject  AmazonIpRuleManager( AmazonFig amazonFig ); @Override void setDataCenter( final String dataCenter ); @Override void applyIpRuleSet( final IpRuleSet ruleSet ); @Override IpRuleSet getIpRuleSet( final String name ); @Override boolean createRuleSet( final String name ); @Override boolean deleteRuleSet( final String name ); @Override Collection<String> listRuleSets(); @Override boolean exists( final String name ); @Override Collection<IpRule> getRules( final String name, final boolean inbound ); @Override void deleteRules( final String name, final IpRule... ipRules ); @Override void deleteRules( final String name, final Collection<IpRule> ipRules ); @Override void deleteRules( final String name, final Collection<String> ipRanges, final String protocol,
                             final int port ); @Override void addRules( final String name, final Collection<String> ipRanges, final String protocol,
                          final int port ); @Override void addRules( final String name, final Collection<String> ipRanges, final String protocol,
                          final int fromPort, final int toPort );  }### Answer:
@Test public void getIpRuleSet() { IpRuleSet set = manager.getIpRuleSet( ipRuleSet.getName() ); assertTrue( ipRuleSet.equals( set ) ); }