AppiumCapabilityProcessor implements CapabilityProcessor { @Override public void process(JsonCapabilities caps) { caps.any().put("keepKeyChains", true); }  @Override boolean accept(JsonCapabilities caps); @Override void process(JsonCapabilities caps);  }
@Test public void process() throws Exception { JsonCapabilities jsonCapabilities = new JsonCapabilities(); processor.process(jsonCapabilities); assertThat(jsonCapabilities.any().keySet(), contains("keepKeyChains")); assertThat(jsonCapabilities.any().get("keepKeyChains"), equalTo(true)); }