@Test
public void testGetLayersSync() {
try {
HashMap<String, String[]> queryParams = new HashMap<String, String[]>();
String jsonString = client.getLayers(queryParams);
LayerCollection layers = LayerCollection.fromJSONString(jsonString);
Assert.assertNotNull(layers.getLayers());
} catch (IOException e) {
Assert.fail(e.getMessage());
} catch (JSONException e) {
Assert.fail(e.getMessage());
}