test_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/test/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/MySQLCommandPacketTypeLoaderTest.java
test_class.identifier: MySQLCommandPacketTypeLoaderTest
test_case.body: @Test
      public void assertGetCommandPacketType() {
          MySQLPacketPayload payload = mock(MySQLPacketPayload.class);
          when(payload.readInt1()).thenReturn(0, MySQLCommandPacketType.COM_QUIT.getValue());
          assertThat(MySQLCommandPacketTypeLoader.getCommandPacketType(payload), is(MySQLCommandPacketType.COM_QUIT));
      }
test_case.class_method_signature: MySQLCommandPacketTypeLoaderTest.assertGetCommandPacketType()
test_case.full_signature: @Test public void assertGetCommandPacketType()
test_case.identifier: assertGetCommandPacketType
test_case.invocations: mock thenReturn when readInt1 getValue assertThat getCommandPacketType is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetCommandPacketType()
focal_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/MySQLCommandPacketTypeLoader.java
focal_class.identifier: MySQLCommandPacketTypeLoader
focal_class.class_method_signature: MySQLCommandPacketTypeLoader.getCommandPacketType(final MySQLPacketPayload payload)
focal_class.full_signature: public static MySQLCommandPacketType getCommandPacketType(final MySQLPacketPayload payload)
focal_class.identifier: getCommandPacketType
focal_class.modifiers: public static
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.return: MySQLCommandPacketType
focal_class.signature: MySQLCommandPacketType getCommandPacketType(final MySQLPacketPayload payload)
focal_method.body: public static MySQLCommandPacketType getCommandPacketType(final MySQLPacketPayload payload) {
          Preconditions.checkArgument(0 == payload.readInt1(), "Sequence ID of MySQL command packet must be `0`.");
          return MySQLCommandPacketType.valueOf(payload.readInt1());
      }
focal_method.class_method_signature: MySQLCommandPacketTypeLoader.getCommandPacketType(final MySQLPacketPayload payload)
focal_method.full_signature: public static MySQLCommandPacketType getCommandPacketType(final MySQLPacketPayload payload)
focal_method.identifier: getCommandPacketType
focal_method.invocations: checkArgument readInt1 valueOf readInt1
focal_method.modifiers: public static
focal_method.parameters: (final MySQLPacketPayload payload)
focal_method.return: MySQLCommandPacketType
focal_method.signature: MySQLCommandPacketType getCommandPacketType(final MySQLPacketPayload payload)