@Override
    public List<DatabasePacket> execute() throws SQLException {
        return portalContext.get(packet.getPortal()).execute(packet.getMaxRows());
    }
@Test
    void assertExecute() throws SQLException {
        PostgreSQLPacket expectedPacket = mock(PostgreSQLPacket.class);
        when(portal.execute(anyInt())).thenReturn(Collections.singletonList(expectedPacket));
        List<DatabasePacket> actualPackets = executor.execute();
        assertThat(actualPackets.size(), is(1));
        assertThat(actualPackets.iterator().next(), is(expectedPacket));
    }