()
| 187 | } |
| 188 | |
| 189 | @Test |
| 190 | public void wrapNotWrapped() throws Exception { |
| 191 | setupWrap(); |
| 192 | final ChannelBuffer buf = getBuffer(unwrapped_payload); |
| 193 | config.overrideConfig(SecureRpcHelper.SECURITY_AUTHENTICATION_KEY, |
| 194 | "kerberos"); |
| 195 | final UTHelper helper = new UTHelper(client, region_client, remote_endpoint); |
| 196 | final ChannelBuffer wrapped = helper.wrap(buf); |
| 197 | assertArrayEquals(wrapped.array(), getBuffer(unwrapped_payload).array()); |
| 198 | assertTrue(wrapped == buf); |
| 199 | } |
| 200 | |
| 201 | @Test (expected = IllegalStateException.class) |
| 202 | public void wrapException() throws Exception { |
nothing calls this directly
no test coverage detected