### Question:
Resource extends WadlElement { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id").append(" : ").append(id); sb.append(", "); sb.append("type").append(" : ").append(type); sb.append(", "); sb.append("queryType").append(" : ").append(queryType); sb.append(", "); sb.append("path").append(" : ").append(path); sb.append(", "); sb.append("params").append(" : ").append(params); sb.append(", "); sb.append("methods").append(" : ").append(methods); sb.append(", "); sb.append("resources").append(" : ").append(resources); sb.append("}"); return sb.toString(); } Resource(final String id, final List<String> type, final String queryType, final String path,
            final List<Documentation> doc, final List<Param> params, final List<Method> methods,
            final List<Resource> resources, final String resourceClass); String getId(); List<String> getType(); String getQueryType(); String getPath(); List<Param> getParams(); List<Method> getMethods(); List<Resource> getResources(); @Override String toString(); String getResourceClass();  }### Answer:
@Test public void testToString() { assertTrue(!"".equals(resource.toString())); }