()
| 162 | } |
| 163 | |
| 164 | @Test (expected = IllegalStateException.class) |
| 165 | public void unwrapException() throws Exception { |
| 166 | when(sasl_client.unwrap(any(byte[].class), anyInt(), anyInt())) |
| 167 | .thenThrow(new SaslException("Boo!")); |
| 168 | config.overrideConfig(SecureRpcHelper.RPC_QOP_KEY, "Integrity"); |
| 169 | final ChannelBuffer buf = getBuffer(unwrapped_payload); |
| 170 | config.overrideConfig(SecureRpcHelper.SECURITY_AUTHENTICATION_KEY, |
| 171 | "kerberos"); |
| 172 | final UTHelper helper = new UTHelper(client, region_client, remote_endpoint); |
| 173 | helper.unwrap(buf); |
| 174 | } |
| 175 | |
| 176 | @Test |
| 177 | public void wrap() throws Exception { |
nothing calls this directly
no test coverage detected