@Test
public void testGet() {

    Assert.assertEquals(HttpVersion.HTTP_0_9, HttpVersion.get(0, 9));
    Assert.assertEquals(HttpVersion.HTTP_1_0, HttpVersion.get(1, 0));
    Assert.assertEquals(HttpVersion.HTTP_1_1, HttpVersion.get(1, 1));
    Assert.assertEquals(HttpVersion.HTTP_2_0, HttpVersion.get(2, 0));
    Assert.assertEquals(HttpVersion.HTTP_2, HttpVersion.get(2, 0));
    Assert.assertNotEquals(HttpVersion.HTTP_2_0, HttpVersion.get(2, 1));
    //
    Assert.assertSame(HttpVersion.HTTP_0_9, HttpVersion.get(0, 9));
    Assert.assertSame(HttpVersion.HTTP_1_0, HttpVersion.get(1, 0));
    Assert.assertSame(HttpVersion.HTTP_1_1, HttpVersion.get(1, 1));
    Assert.assertSame(HttpVersion.HTTP_2_0, HttpVersion.get(2, 0));
    Assert.assertSame(HttpVersion.HTTP_2, HttpVersion.get(2, 0));
    Assert.assertNotSame(HttpVersion.HTTP_2_0, HttpVersion.get(2, 1));
}