Filters { public static void filterLimitCellsPerCol() { String projectId = "my-project-id"; String instanceId = "my-instance-id"; String tableId = "mobile-time-series"; filterLimitCellsPerCol(projectId, instanceId, tableId); }  static void filterLimitRowSample(); static void filterLimitRowSample(String projectId, String instanceId, String tableId); static void filterLimitRowRegex(); static void filterLimitRowRegex(String projectId, String instanceId, String tableId); static void filterLimitCellsPerCol(); static void filterLimitCellsPerCol(String projectId, String instanceId, String tableId); static void filterLimitCellsPerRow(); static void filterLimitCellsPerRow(String projectId, String instanceId, String tableId); static void filterLimitCellsPerRowOffset(); static void filterLimitCellsPerRowOffset(
      String projectId, String instanceId, String tableId); static void filterLimitColFamilyRegex(); static void filterLimitColFamilyRegex(
      String projectId, String instanceId, String tableId); static void filterLimitColQualifierRegex(); static void filterLimitColQualifierRegex(
      String projectId, String instanceId, String tableId); static void filterLimitColRange(); static void filterLimitColRange(String projectId, String instanceId, String tableId); static void filterLimitValueRange(); static void filterLimitValueRange(String projectId, String instanceId, String tableId); static void filterLimitValueRegex(); static void filterLimitValueRegex(String projectId, String instanceId, String tableId); static void filterLimitTimestampRange(); static void filterLimitTimestampRange(
      String projectId, String instanceId, String tableId); static void filterLimitBlockAll(); static void filterLimitBlockAll(String projectId, String instanceId, String tableId); static void filterComposingChain(); static void filterComposingChain(String projectId, String instanceId, String tableId); static void filterComposingInterleave(); static void filterComposingInterleave(
      String projectId, String instanceId, String tableId); static void readWithFilter(
      String projectId, String instanceId, String tableId, Scan scan);  }
@Test public void testFilterCellsPerCol() { Filters.filterLimitCellsPerCol(projectId, instanceId, TABLE_ID); String output = bout.toString(); assertThat(output) .contains( String.format( "Reading data for phone#4c410523#20190501\n" + "Column Family cell_plan\n" + "\tdata_plan_01gb: false @%1$s\n" + "\tdata_plan_01gb: true @%2$s\n" + "\tdata_plan_05gb: true @%1$s\n" + "Column Family stats_summary\n" + "\tconnected_cell: \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001 @%1$s\n" + "\tconnected_wifi: \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001 @%1$s\n" + "\tos_build: PQ2A.190405.003 @%1$s\n\n" + "Reading data for phone#4c410523#20190502\n" + "Column Family cell_plan\n" + "\tdata_plan_05gb: true @%1$s\n" + "Column Family stats_summary\n" + "\tconnected_cell: \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001 @%1$s\n" + "\tconnected_wifi: \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001 @%1$s\n" + "\tos_build: PQ2A.190405.004 @%1$s\n\n" + "Reading data for phone#4c410523#20190505\n" + "Column Family cell_plan\n" + "\tdata_plan_05gb: true @%1$s\n" + "Column Family stats_summary\n" + "\tconnected_cell: \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000 @%1$s\n" + "\tconnected_wifi: \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001 @%1$s\n" + "\tos_build: PQ2A.190406.000 @%1$s\n\n" + "Reading data for phone#5c10102#20190501\n" + "Column Family cell_plan\n" + "\tdata_plan_10gb: true @%1$s\n" + "Column Family stats_summary\n" + "\tconnected_cell: \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001 @%1$s\n" + "\tconnected_wifi: \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001 @%1$s\n" + "\tos_build: PQ2A.190401.002 @%1$s\n\n" + "Reading data for phone#5c10102#20190502\n" + "Column Family cell_plan\n" + "\tdata_plan_10gb: true @%1$s\n" + "Column Family stats_summary\n" + "\tconnected_cell: \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001 @%1$s\n" + "\tconnected_wifi: \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000 @%1$s\n" + "\tos_build: PQ2A.190406.000 @%1$s", TIMESTAMP, TIMESTAMP_MINUS_HR)); }