@Override
    public Collection<DatabasePacket> execute() {
        return Collections.singleton(connectionSession.getTransactionStatus().isInTransaction() ? PostgreSQLReadyForQueryPacket.IN_TRANSACTION : PostgreSQLReadyForQueryPacket.NOT_IN_TRANSACTION);
    }
@Test
    void assertNewInstance() {
        when(connectionSession.getTransactionStatus()).thenReturn(new TransactionStatus());
        PostgreSQLComSyncExecutor actual = new PostgreSQLComSyncExecutor(connectionSession);
        assertThat(actual.execute().iterator().next(), is(instanceOf(PostgreSQLReadyForQueryPacket.class)));
    }