List<WSHandlerResult> results =
CastUtils.cast((List<?>)wsContext.getMessageContext().get(WSHandlerConstants.RECV_RESULTS));
Assert.assertNotNull("Security Results cannot be null", results);
Assert.assertTrue(results.size() > 0);
WSHandlerResult result = results.get(0);
List<WSSecurityEngineResult> securityResults = result.getResults();
Assert.assertNotNull("Security Results cannot be null", securityResults);
Assert.assertTrue(securityResults.size() > 0);
WSSecurityEngineResult securityResult = securityResults.get(0);
BinarySecurity binarySecurityToken =