@Test
public void shouldHandleQueryClusterName() {

  // querying the local table for cluster_name should return ClusterSpec.getName()
  List<String> queries =
      Arrays.asList(
          "SELECT cluster_name FROM system.local",
          "select cluster_name from system.local where key='local'",
          "select cluster_name from system.local where key = 'local'");
  for (String query : queries) {
    List<Action> node0Actions = handler.getActions(node0, queryFrame(query));
    assertThat(node0Actions).hasSize(1);
    Action node0Action = node0Actions.get(0);
    assertThat(node0Action).isInstanceOf(MessageResponseAction.class);
    Message node0Message = ((MessageResponseAction) node0Action).getMessage();
    assertThat(node0Message)
        .isRows()
        .hasRows(1)
        .hasColumnSpecs(1)
        .hasColumn(0, 0, cluster.getName());
  }
}