@Test
public void testGetUnsignedTokenFromUnsignedToken() {

    String [] signedTokens = {
        // this is a RoleToken
        "v=Z1;d=sports;r=storage.tenant.weather.updater;p=user.joe;a=aAkjbbDMhnLX;t=1447361682;e=1447361692;k=0;i=127.0.0.1",
        "v=Z1;d=sports;r=storage.tenant.weather.updater,fantasy.tenant.sports.admin,fantasy.tenant.sports.reader,fantasy.tenant.sports.writer,fantasy.tenant.sports.scanner;p=coretech.storage;a=aAkjbbDMhnLX;t=1447361682;e=1447361692;k=0;i=127.0.0.1",
        // this is a PrincipalToken
        "v=S1;d=cd.project;n=nfl;h=somehost.somecompany.com;a=saltvalue;t=1447361732;e=1447361742",
        "v=S1;d=cd;n=12345;h=somehost.somecompany.com;a=saltvalue;t=1447361732;e=1447361742;k=0",
    };
    for (String signedToken: signedTokens) {
        String unsignedToken = Token.getUnsignedToken(signedToken);
        assertSame(unsignedToken, signedToken);
    }
}