@Test
public void testSetPortForwardingRulesCommand() {

    final SetPortForwardingRulesCommand cmd = generateSetPortForwardingRulesCommand();
    // Reset rule check count
    _count = 0;
    final Answer answer = _resource.executeRequest(cmd);
    assertTrue(answer instanceof GroupAnswer);
    assertEquals(((GroupAnswer) answer).getResults().length, 2);
    assertTrue(answer.getResult());
}