@Test
public void testLocate() throws URISyntaxException, Exception {
LocateRequestType request = XKMS_OF.createLocateRequestType();
setGenericRequestParams(request);
QueryKeyBindingType queryKeyBindingType = XKMS_OF.createQueryKeyBindingType();
UseKeyWithType useKeyWithType = XKMS_OF.createUseKeyWithType();
useKeyWithType.setIdentifier("CN=Dave, OU=Apache, O=CXF, L=CGN, ST=NRW, C=DE");
useKeyWithType.setApplication(Applications.PKIX.getUri());
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());