}
}
@Test()
public void JUDDI_712_SaveBusinessProjectionNoServiceKey3WithSignature() throws CertificateException {
SaveBusiness sb = new SaveBusiness();
sb.setAuthInfo(authInfoJoe);
BusinessEntity be = new BusinessEntity();
Name n = new Name();
n.setValue("JUDDI_712_SaveBusinessProjectionNoServiceKey3WithSignature");
be.getName().add(n);
be.setBusinessKey(TckBusiness.JOE_BUSINESS_KEY);
//service has business but not service key
BusinessService bs = new BusinessService();
//bs.setBusinessKey(TckBusiness.JOE_BUSINESS_KEY);
bs.setServiceKey(TckBusinessService.JOE_SERVICE_KEY);
bs.getName().add(new Name("Joe's bs", null));
be.setBusinessServices(new BusinessServices());
be.getBusinessServices().getBusinessService().add(bs);
DigSigUtil ds = GetDigSig();
be = ds.signUddiEntity(be);
sb.getBusinessEntity().add(be);
try {
BusinessDetail saveBusiness = publicationJoe.saveBusiness(sb);
Assert.fail("unexpected success");
} catch (Exception ex) {
logger.info("Expected failure: " + ex.getMessage());