BoltProtocolVersion implements Comparable<BoltProtocolVersion> { @Override public String toString() { return String.format( "%d.%d", majorVersion, minorVersion ); } BoltProtocolVersion( int majorVersion, int minorVersion ); static BoltProtocolVersion fromRawBytes( int rawVersion ); long getMinorVersion(); long getMajorVersion(); int toInt(); @Override String toString(); @Override int hashCode(); @Override boolean equals( Object o ); @Override int compareTo( BoltProtocolVersion other ); static boolean isHttp( BoltProtocolVersion protocolVersion );  }
@Test void shouldOutputFormattedString() { BoltProtocolVersion version = new BoltProtocolVersion( 4, 1 ); assertEquals( "4.1", version.toString() ); }