@Test
public void generic() throws Exception {

    ServiceBuilder builder = new ServiceBuilder();
    builder.generic(GENERIC_SERIALIZATION_DEFAULT);
    assertThat(builder.build().getGeneric(), equalTo(GENERIC_SERIALIZATION_DEFAULT));
    builder.generic(GENERIC_SERIALIZATION_NATIVE_JAVA);
    assertThat(builder.build().getGeneric(), equalTo(GENERIC_SERIALIZATION_NATIVE_JAVA));
    builder.generic(GENERIC_SERIALIZATION_BEAN);
    assertThat(builder.build().getGeneric(), equalTo(GENERIC_SERIALIZATION_BEAN));
}