@Test
public void shouldHandleQuerySpecificPeer() throws UnknownHostException {

  // when peer query is made for a peer in the cluster, we should get 1 row back.
  List<String> queries =
      Arrays.asList(
          "SELECT * FROM system.peers WHERE peer='127.0.11.17'",
          "select * from system.peers where peer = '127.0.11.17'",
          " select  *  from  system.peers  where  peer  =  '127.0.11.17' ; ");
  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();
    // should be 1 matching peer
    assertThat(node0Message)
        .isRows()
        .hasRows(1)
        .hasColumnSpecs(8)
        .hasColumn(0, 0, InetAddress.getByAddress(new byte[] {127, 0, 11, 17}))
        .hasColumn(0, 1, "dc1");
  }
}