QueryKeyBindingType queryKeyBindingType,
UseKeyWithType useKeyWithType) {
queryKeyBindingType.getUseKeyWith().add(useKeyWithType);
request.setQueryKeyBinding(queryKeyBindingType);
LocateResultType result = xkmsService.locate(request);
Assert.assertEquals(ResultMajorEnum.HTTP_WWW_W_3_ORG_2002_03_XKMS_SUCCESS.value(),
result.getResultMajor());
List<UnverifiedKeyBindingType> keyBinding = result.getUnverifiedKeyBinding();
Assert.assertEquals(1, keyBinding.size());
KeyInfoType keyInfo = keyBinding.get(0).getKeyInfo();
Assert.assertNotNull(keyInfo);
}