@Test
public void testIsValidAuthorizedServiceTokenSvcNoSigYes() {

    // we're going to test where we have an authorized
    // service signature but no service name
    String token = "v=S1;d=domain;n=service;t=1234;e=1235;k=0;h=host1;i=1.2.3.4;s=signature;bk=0;bs=signature";
    PrincipalToken svcToken = new PrincipalToken(token);
    StringBuilder errMsg = new StringBuilder();
    assertFalse(svcToken.isValidAuthorizedServiceToken(errMsg));
    assertTrue(!errMsg.toString().isEmpty());
}