@Test
public void valueOf() {

    TypeOfAddress toa = TypeOfAddress.valueOf((byte)0x91);
    Assert.assertEquals(Ton.INTERNATIONAL, toa.getTon());
    Assert.assertEquals(Npi.ISDN, toa.getNpi());
    TypeOfAddress toa2 = TypeOfAddress.valueOf((byte)0x81);
    Assert.assertEquals(Ton.INTERNATIONAL, toa2.getTon());
    Assert.assertEquals(Npi.UNKNOWN, toa2.getNpi());
}