test_class.declarator: payload
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private MySQLPacketPayload payload;
test_class.type: MySQLPacketPayload
test_class.var_name: payload
test_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/test/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/MySQLFieldCountPacketTest.java
test_class.identifier: MySQLFieldCountPacketTest
test_case.body: @Test
      public void assertWrite() {
          when(payload.readInt1()).thenReturn(1, 3);
          MySQLFieldCountPacket actual = new MySQLFieldCountPacket(payload);
          assertThat(actual.getSequenceId(), is(1));
          assertThat(actual.getColumnCount(), is(3));
          actual.write(payload);
          verify(payload).writeIntLenenc(3);
      }
test_case.class_method_signature: MySQLFieldCountPacketTest.assertWrite()
test_case.full_signature: @Test public void assertWrite()
test_case.identifier: assertWrite
test_case.invocations: thenReturn when readInt1 assertThat getSequenceId is assertThat getColumnCount is write writeIntLenenc verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertWrite()
focal_class.declarator: sequenceId
focal_class.modifier: private final
focal_class.original_string: private final int sequenceId;
focal_class.type: int
focal_class.var_name: sequenceId
focal_class.declarator: columnCount
focal_class.modifier: private final
focal_class.original_string: private final int columnCount;
focal_class.type: int
focal_class.var_name: columnCount
focal_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/MySQLFieldCountPacket.java
focal_class.identifier: MySQLFieldCountPacket
focal_class.interfaces: implements MySQLPacket
focal_class.class_method_signature: MySQLFieldCountPacket.MySQLFieldCountPacket(final MySQLPacketPayload payload)
focal_class.full_signature: public  MySQLFieldCountPacket(final MySQLPacketPayload payload)
focal_class.identifier: MySQLFieldCountPacket
focal_class.modifiers: public
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.signature:  MySQLFieldCountPacket(final MySQLPacketPayload payload)
focal_class.class_method_signature: MySQLFieldCountPacket.write(final MySQLPacketPayload payload)
focal_class.full_signature: @Override public void write(final MySQLPacketPayload payload)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.return: void
focal_class.signature: void write(final MySQLPacketPayload payload)
focal_method.body: @Override
      public void write(final MySQLPacketPayload payload) {
          payload.writeIntLenenc(columnCount);
      }
focal_method.class_method_signature: MySQLFieldCountPacket.write(final MySQLPacketPayload payload)
focal_method.full_signature: @Override public void write(final MySQLPacketPayload payload)
focal_method.identifier: write
focal_method.invocations: writeIntLenenc
focal_method.modifiers: @Override public
focal_method.parameters: (final MySQLPacketPayload payload)
focal_method.return: void
focal_method.signature: void write(final MySQLPacketPayload payload)