@Test
public void testDefaultEncoder_withOverriddenParamName() {

  HashSet<Object> expectedNames = new HashSet<>();
  expectedNames.add("fooAlias");
  expectedNames.add("bar");
  final NormalObjectWithOverriddenParamName normalObject =
      new NormalObjectWithOverriddenParamName("fooz", "barz");
  final Map<String, Object> encodedMap = encoder.encode(normalObject);
  assertEquals("@Param ignored", expectedNames, encodedMap.keySet());
}