ShouldUseCompactResponses extends AbstractSetting<Boolean> { @Override public Boolean getValue() { return AppiumUIA2Driver .getInstance() .getSessionOrThrow() .shouldUseCompactResponses(); } ShouldUseCompactResponses(); @Override Boolean getValue();  }
@Test public void shouldBeAbleToEnableShouldUseCompactResponses() { session.setCapability(SHOULD_USE_COMPACT_RESPONSES.toString(), "true"); Assert.assertEquals(true, shouldUseCompactResponses.getValue()); }
@Test public void shouldBeAbleToDisableShouldUseCompactResponses() { session.setCapability(SHOULD_USE_COMPACT_RESPONSES.toString(), "false"); Assert.assertEquals(false, shouldUseCompactResponses.getValue()); }