@Test(groups = { "oam", "functional.mgmt" })

public void testPrimAddress() {
    String rspCmd = "sccp address create 11 71 6535 8 0 0 12 93707100007";
    // <id> <address-indicator> <point-code> <subsystem-number>
    // <translation-type> <numbering-plan> <nature-of-address-indicator>
    // <digits>
    String res = this.sccpExecutor.execute(rspCmd.split(" "));
    assertEquals(this.router.getRoutingAddresses().size(), 1);
    SccpAddress addr = this.router.getRoutingAddress(11);
    assertEquals(addr.getAddressIndicator().getValue(SccpProtocolVersion.ITU), 71);
    assertEquals(addr.getSignalingPointCode(), 6535);
    assertEquals(addr.getSubsystemNumber(), 8);
    assertTrue(addr.getGlobalTitle().getDigits().equals("93707100007"));
    rspCmd = "sccp address create 11 71 6536 8 0 0 12 93707100007";
    res = this.sccpExecutor.execute(rspCmd.split(" "));
    assertTrue(res.equals(SccpOAMMessage.ADDRESS_ALREADY_EXIST));
    assertEquals(this.router.getRoutingAddresses().size(), 1);
    addr = this.router.getRoutingAddress(11);
    assertEquals(addr.getSignalingPointCode(), 6535);
    rspCmd = "sccp address modify 11 71 6537 8 0 0 12 93707100007";
    res = this.sccpExecutor.execute(rspCmd.split(" "));
    assertEquals(this.router.getRoutingAddresses().size(), 1);
    addr = this.router.getRoutingAddress(11);
    assertEquals(addr.getSignalingPointCode(), 6537);
    rspCmd = "sccp address modify 12 71 6538 8 0 0 12 93707100007";
    res = this.sccpExecutor.execute(rspCmd.split(" "));
    assertTrue(res.equals(String.format(SccpOAMMessage.ADDRESS_DOESNT_EXIST, this.sccpStack.getName())));
    assertEquals(this.router.getRoutingAddresses().size(), 1);
    addr = this.router.getRoutingAddress(11);
    assertEquals(addr.getSignalingPointCode(), 6537);
    rspCmd = "sccp address show 11";
    res = this.sccpExecutor.execute(rspCmd.split(" "));
    rspCmd = "sccp address show";
    res = this.sccpExecutor.execute(rspCmd.split(" "));
    rspCmd = "sccp address delete 12";
    res = this.sccpExecutor.execute(rspCmd.split(" "));
    assertTrue(res.equals(String.format(SccpOAMMessage.ADDRESS_DOESNT_EXIST, this.sccpStack.getName())));
    assertEquals(this.router.getRoutingAddresses().size(), 1);
    rspCmd = "sccp address delete 11";
    res = this.sccpExecutor.execute(rspCmd.split(" "));
    assertEquals(this.router.getRoutingAddresses().size(), 0);
}