@Override
    public Collection<LocalDataQueryResultRow> getRows(final ShowComputeNodeModeStatement sqlStatement, final ContextManager contextManager) {
        PersistRepositoryConfiguration repositoryConfig = contextManager.getComputeNodeInstanceContext().getModeConfiguration().getRepository();
        String modeType = contextManager.getComputeNodeInstanceContext().getModeConfiguration().getType();
        String repositoryType = null == repositoryConfig ? null : repositoryConfig.getType();
        Properties props = null == repositoryConfig ? null : repositoryConfig.getProps();
        return Collections.singleton(new LocalDataQueryResultRow(modeType, repositoryType, props));
    }
@Test
    void assertExecute() {
        ShowComputeNodeModeExecutor executor = new ShowComputeNodeModeExecutor();
        ContextManager contextManager = mock(ContextManager.class);
        ComputeNodeInstanceContext computeNodeInstanceContext = createInstanceContext();
        when(contextManager.getComputeNodeInstanceContext()).thenReturn(computeNodeInstanceContext);
        Collection<LocalDataQueryResultRow> actual = executor.getRows(new ShowComputeNodeModeStatement(), contextManager);
        assertThat(actual.size(), is(1));
        Iterator<LocalDataQueryResultRow> iterator = actual.iterator();
        LocalDataQueryResultRow row = iterator.next();
        assertThat(row.getCell(1), is("Cluster"));
        assertThat(row.getCell(2), is("ZooKeeper"));
        assertThat(row.getCell(3), is("{\"key\":\"value1,value2\"}"));
    }