### Question:
PropsTableView implements TableViewResource { @Override public JsonArray getData() { JsonArray props = new JsonArray(); List<Property> properties = PropertiesHelper.getAllProperties(); totalRecords = properties.size(); numFilteredRecords = totalRecords; List<Property> propsFiltered = applyFilter(properties); List<Property> propsSorted = applySorting(propsFiltered); List<Property> propsCurrentPage = applyPagination(propsSorted); for (Property property : propsCurrentPage) { JsonArray propArr = new JsonArray(); JsonPrimitive propName = new JsonPrimitive(property.getName()); JsonPrimitive propValue = new JsonPrimitive(property.getValue()); propArr.add(propName); propArr.add(propValue); props.add(propArr); } return props; } PropsTableView(); @Override List<String> getColumns(); @Override TableViewResource setColumnSearchTerm(String column, String term); @Override TableViewResource setAllColumnsSearchTerm(String term); @Override TableViewResource enableColumnSort(String column, boolean isDescending); @Override JsonArray getData(); @Override int getTotalNumOfRecords(); @Override int getFilteredNumOfRecords(); @Override TableViewResource setCurrentPageInfo(int startIndex, int count); static final String KEY; static final String VALUE; }### Answer:
@Test public void getDataTest() { final PropsTableView ptv = new PropsTableView(); final JsonArray data = ptv.getData(); assertTrue(data != null); assertTrue(data.size() > 0); }