@Test
public void testBuilderDefaultOptionalValues() {

    PrincipalToken token = new PrincipalToken.Builder(svcVersion, svcDomain, svcName).build();
    assertEquals(token.getVersion(), svcVersion);
    assertEquals(token.getDomain(), svcDomain);
    assertEquals(token.getName(), svcName);
    assertNull(token.getHost());
    assertNotNull(token.getSalt());
    assertEquals(token.getKeyId(), "0");
    assertNull(token.getIP());
    long timestamp = token.getTimestamp();
    assertTrue(timestamp != 0);
    assertEquals(token.getExpiryTime(), timestamp + 3600);
}