### Question:
BoltProtocolV3 extends BoltProtocolV1 { @Override protected Neo4jPack createPack() { return new Neo4jPackV2(); } BoltProtocolV3( BoltChannel channel, BoltConnectionFactory connectionFactory, BoltStateMachineFactory stateMachineFactory, LogService logging ); @Override long version(); static final long VERSION; }### Answer:
@Test void shouldCreatePackForBoltV3() throws Throwable { BoltProtocolV3 protocolV3 = new BoltProtocolV3( mock( BoltChannel.class ), ( ch, st ) -> mock( BoltConnection.class ), mock( BoltStateMachineFactory.class ), NullLogService.getInstance() ); assertThat( protocolV3.createPack(), instanceOf( Neo4jPackV2.class ) ); }