test_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/PostgreSQLCommandPacketTypeLoaderTest.java
test_class.identifier: PostgreSQLCommandPacketTypeLoaderTest
test_case.body: @Test
      public void assertGetCommandPacketType() {
          PostgreSQLPacketPayload payload = mock(PostgreSQLPacketPayload.class);
          when(payload.readInt1()).thenReturn((int) PostgreSQLCommandPacketType.AUTHENTICATION_OK.getValue());
          assertThat(PostgreSQLCommandPacketTypeLoader.getCommandPacketType(payload), is(PostgreSQLCommandPacketType.AUTHENTICATION_OK));
      }
test_case.class_method_signature: PostgreSQLCommandPacketTypeLoaderTest.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-postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/PostgreSQLCommandPacketTypeLoader.java
focal_class.identifier: PostgreSQLCommandPacketTypeLoader
focal_class.class_method_signature: PostgreSQLCommandPacketTypeLoader.getCommandPacketType(final PostgreSQLPacketPayload payload)
focal_class.full_signature: public static PostgreSQLCommandPacketType getCommandPacketType(final PostgreSQLPacketPayload payload)
focal_class.identifier: getCommandPacketType
focal_class.modifiers: public static
focal_class.parameters: (final PostgreSQLPacketPayload payload)
focal_class.return: PostgreSQLCommandPacketType
focal_class.signature: PostgreSQLCommandPacketType getCommandPacketType(final PostgreSQLPacketPayload payload)
focal_method.body: public static PostgreSQLCommandPacketType getCommandPacketType(final PostgreSQLPacketPayload payload) {
          return PostgreSQLCommandPacketType.valueOf(payload.readInt1());
      }
focal_method.class_method_signature: PostgreSQLCommandPacketTypeLoader.getCommandPacketType(final PostgreSQLPacketPayload payload)
focal_method.full_signature: public static PostgreSQLCommandPacketType getCommandPacketType(final PostgreSQLPacketPayload payload)
focal_method.identifier: getCommandPacketType
focal_method.invocations: valueOf readInt1
focal_method.modifiers: public static
focal_method.parameters: (final PostgreSQLPacketPayload payload)
focal_method.return: PostgreSQLCommandPacketType
focal_method.signature: PostgreSQLCommandPacketType getCommandPacketType(final PostgreSQLPacketPayload payload)