SharedPreferencesGatewayBuilder extends GatewayBuilder { public SharedPreferencesGatewayBuilder mode(int mode) { this.mode = mode; return this; } SharedPreferencesGatewayBuilder(@Nonnull Context context); SharedPreferencesGatewayBuilder mode(int mode);  }
@Test public void testWithMode() throws Exception { SharedPreferencesGatewayBuilder builder = new SharedPreferencesGatewayBuilder(context); builder.mode(Context.MODE_WORLD_READABLE) .namespace("test") .build(); verify(context).getSharedPreferences("test", Context.MODE_WORLD_READABLE); }