### Question:
ProxyClient { @SuppressWarnings("unchecked") public List<Proxy> get(ProxyGetParam param) { JSONObject params = JSONObject.fromObject(param, defaultConfig); JSONArray result = (JSONArray) accessor.execute("proxy.get", params); JsonConfig config = defaultConfig.copy(); config.setCollectionType(List.class); config.setRootClass(Proxy.class); return (List<Proxy>) JSONArray.toCollection(result, config); } ProxyClient(ZabbixAccessor accessor, JsonConfig defaultConfig); @SuppressWarnings("unchecked") List<Proxy> get(ProxyGetParam param);  }### Answer:
@Test @Ignore public void testGetAll() { ProxyGetParam param = new ProxyGetParam(); param.setOutput("extend"); List<Proxy> proxies = client.proxy().get(param); for (Proxy proxy : proxies) { log.trace(ReflectionToStringBuilder.toString(proxy, ToStringStyle.SHORT_PREFIX_STYLE)); } assertTrue(proxies.size() > 0); }
@Test @Ignore public void testGetByFilter() { ProxyGetParam param = new ProxyGetParam(); param.setOutput("extend"); Map<String, List<Object>> filter = new HashMap<String, List<Object>>(); filter.put("host", Arrays.asList((Object) "proxy1")); param.setFilter(filter); List<Proxy> proxies = client.proxy().get(param); assertEquals(1, proxies.size()); assertEquals("proxy1", proxies.get(0).getHost()); }