@Test
public void testBuilderDefaultOptionalValues() {

    
    List<String> roles = new ArrayList<>();
    roles.add("storage.tenant.weather.updater");
    
    RoleToken token = new RoleToken.Builder(rolVersion, svcDomain, roles).build();
    assertEquals(token.getVersion(), rolVersion);
    assertEquals(token.getDomain(), svcDomain);
    assertEquals(token.getRoles(), roles);
    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);
}