test_class.declarator: payload
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private PostgreSQLPacketPayload payload;
test_class.type: PostgreSQLPacketPayload
test_class.var_name: payload
test_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/PostgreSQLCommandPacketFactoryTest.java
test_class.identifier: PostgreSQLCommandPacketFactoryTest
test_case.body: @Test
      public void assertNewInstanceWithSyncComPacket() throws SQLException {
          assertThat(PostgreSQLCommandPacketFactory.newInstance(PostgreSQLCommandPacketType.SYNC, payload, 1), instanceOf(PostgreSQLComSyncPacket.class));
      }
test_case.class_method_signature: PostgreSQLCommandPacketFactoryTest.assertNewInstanceWithSyncComPacket()
test_case.full_signature: @Test public void assertNewInstanceWithSyncComPacket()
test_case.identifier: assertNewInstanceWithSyncComPacket
test_case.invocations: assertThat newInstance instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertNewInstanceWithSyncComPacket()
focal_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/PostgreSQLCommandPacketFactory.java
focal_class.identifier: PostgreSQLCommandPacketFactory
focal_class.class_method_signature: PostgreSQLCommandPacketFactory.newInstance(
              final PostgreSQLCommandPacketType commandPacketType, final PostgreSQLPacketPayload payload, final int connectionId)
focal_class.full_signature: public static PostgreSQLCommandPacket newInstance(
              final PostgreSQLCommandPacketType commandPacketType, final PostgreSQLPacketPayload payload, final int connectionId)
focal_class.identifier: newInstance
focal_class.modifiers: public static
focal_class.parameters: (
              final PostgreSQLCommandPacketType commandPacketType, final PostgreSQLPacketPayload payload, final int connectionId)
focal_class.return: PostgreSQLCommandPacket
focal_class.signature: PostgreSQLCommandPacket newInstance(
              final PostgreSQLCommandPacketType commandPacketType, final PostgreSQLPacketPayload payload, final int connectionId)
focal_method.body: public static PostgreSQLCommandPacket newInstance(
              final PostgreSQLCommandPacketType commandPacketType, final PostgreSQLPacketPayload payload, final int connectionId) throws SQLException {
          switch (commandPacketType) {
              case QUERY:
                  return new PostgreSQLComQueryPacket(payload);
              case PARSE:
                  return new PostgreSQLComParsePacket(payload);
              case BIND:
                  return new PostgreSQLComBindPacket(payload, connectionId);
              case DESCRIBE:
                  return new PostgreSQLComDescribePacket(payload);
              case EXECUTE:
                  return new PostgreSQLComExecutePacket(payload);
              case SYNC:
                  return new PostgreSQLComSyncPacket(payload);
              case TERMINATE:
                  return new PostgreSQLComTerminationPacket(payload);
              default:
                  return new PostgreSQLUnsupportedCommandPacket(commandPacketType.getValue());
          }
      }
focal_method.class_method_signature: PostgreSQLCommandPacketFactory.newInstance(
              final PostgreSQLCommandPacketType commandPacketType, final PostgreSQLPacketPayload payload, final int connectionId)
focal_method.full_signature: public static PostgreSQLCommandPacket newInstance(
              final PostgreSQLCommandPacketType commandPacketType, final PostgreSQLPacketPayload payload, final int connectionId)
focal_method.identifier: newInstance
focal_method.invocations: getValue
focal_method.modifiers: public static
focal_method.parameters: (
              final PostgreSQLCommandPacketType commandPacketType, final PostgreSQLPacketPayload payload, final int connectionId)
focal_method.return: PostgreSQLCommandPacket
focal_method.signature: PostgreSQLCommandPacket newInstance(
              final PostgreSQLCommandPacketType commandPacketType, final PostgreSQLPacketPayload payload, final int connectionId)