BodyFilters { @API(status = MAINTAINED) public static BodyFilter defaultValue() { return defaultValues(BodyFilter.class).stream() .reduce(oauthRequest(), BodyFilter::merge); } private  BodyFilters(); @API(status = MAINTAINED) static BodyFilter defaultValue(); @API(status = EXPERIMENTAL) static BodyFilter oauthRequest(); @API(status = EXPERIMENTAL) static BodyFilter replaceFormUrlEncodedProperty(final Set<String> properties, final String replacement); @API(status = EXPERIMENTAL) static BodyFilter truncate(final int maxSize); @API(status = EXPERIMENTAL) static BodyFilter compactXml();  }
@Test void filtersClientSecretByOauthRequestFilterByDefault() { final BodyFilter unit = defaultValue(); final String actual = unit.filter("application/x-www-form-urlencoded", "client_secret=secret"); assertThat(actual, is("client_secret=XXX")); }