()
| 199 | } |
| 200 | |
| 201 | @Test (expected = IllegalStateException.class) |
| 202 | public void wrapException() throws Exception { |
| 203 | when(sasl_client.wrap(any(byte[].class), anyInt(), anyInt())) |
| 204 | .thenThrow(new SaslException("Boo!")); |
| 205 | config.overrideConfig(SecureRpcHelper.RPC_QOP_KEY, "Integrity"); |
| 206 | final ChannelBuffer buf = getBuffer(unwrapped_payload); |
| 207 | config.overrideConfig(SecureRpcHelper.SECURITY_AUTHENTICATION_KEY, |
| 208 | "kerberos"); |
| 209 | final UTHelper helper = new UTHelper(client, region_client, remote_endpoint); |
| 210 | helper.wrap(buf); |
| 211 | } |
| 212 | |
| 213 | @Test |
| 214 | public void processChallenge() throws Exception { |
nothing calls this directly
no test coverage detected