@Test
public void shouldConstructAnAuthorizationHttpChannelWithGivenParams() throws Exception {

    MethodType type = mock(MethodType.class);
    HttpChannel channel = mock(HttpChannel.class);
    AuthorizationHttpChannel expected = mock(AuthorizationHttpChannel.class);
    when(delegate.open(type, "url", UTF8)).thenReturn(channel);
    whenNew(AuthorizationHttpChannel.class).withArguments(channel, authorization, type, "url", UTF8, httpEntityParamExtractors).thenReturn(expected);
    HttpChannel actual = toTest.open(type,"url", UTF8);
    assertSame(expected, actual);
}