@Test
public void setHttp2AuthorityWithUserInfo() {

    Http2Headers headers = new DefaultHttp2Headers();
    HttpConversionUtil.setHttp2Authority("info@foo", headers);
    assertEquals(new AsciiString("foo"), headers.authority());
    HttpConversionUtil.setHttp2Authority("@foo.bar", headers);
    assertEquals(new AsciiString("foo.bar"), headers.authority());
}