()
| 150 | } |
| 151 | |
| 152 | @Test |
| 153 | public void unwrapNotWrapped() throws Exception { |
| 154 | setupUnwrap(); |
| 155 | final ChannelBuffer buf = getBuffer(unwrapped_payload); |
| 156 | config.overrideConfig(SecureRpcHelper.SECURITY_AUTHENTICATION_KEY, |
| 157 | "kerberos"); |
| 158 | final UTHelper helper = new UTHelper(client, region_client, remote_endpoint); |
| 159 | final ChannelBuffer unwrapped = helper.unwrap(buf); |
| 160 | assertArrayEquals(unwrapped.array(), getBuffer(unwrapped_payload).array()); |
| 161 | assertTrue(unwrapped == buf); |
| 162 | } |
| 163 | |
| 164 | @Test (expected = IllegalStateException.class) |
| 165 | public void unwrapException() throws Exception { |
nothing calls this directly
no test coverage detected