class ShouldUseCompactResponses extends AbstractSetting<Boolean> {

    @Override
    public Boolean getValue() {
        return AppiumUIA2Driver
                .getInstance()
                .getSessionOrThrow()
                .shouldUseCompactResponses();
    }

}

class ShouldUseCompactResponsesTest {

    private ShouldUseCompactResponses shouldUseCompactResponses;
    private Session session;

    @Test
    public void shouldBeAbleToEnableShouldUseCompactResponses() {

        session.setCapability(SHOULD_USE_COMPACT_RESPONSES.toString(), "true");
        Assert.assertEquals(true, shouldUseCompactResponses.getValue());
    }

}