@Test void serialize() throws Exception { when(this.userConfiguration.getStoreHint()).thenReturn("storehint"); UserReferenceSerializer customUserReferenceSerializer = mock(UserReferenceSerializer.class); when(this.componentManager.getInstance(new DefaultParameterizedType(null, UserReferenceSerializer.class, String.class), "storehint")).thenReturn(customUserReferenceSerializer); UserReference userReference = mock(UserReference.class); this.serializer.serialize(userReference); verify(customUserReferenceSerializer).serialize(userReference); }
@Override public String serialize(UserReference userReference) { return resolveUserReferenceSerializer().serialize(userReference); }
ConfiguredStringUserReferenceSerializer implements UserReferenceSerializer<String> { @Override public String serialize(UserReference userReference) { return resolveUserReferenceSerializer().serialize(userReference); } }
ConfiguredStringUserReferenceSerializer implements UserReferenceSerializer<String> { @Override public String serialize(UserReference userReference) { return resolveUserReferenceSerializer().serialize(userReference); }  }
ConfiguredStringUserReferenceSerializer implements UserReferenceSerializer<String> { @Override public String serialize(UserReference userReference) { return resolveUserReferenceSerializer().serialize(userReference); }  @Override String serialize(UserReference userReference); }
ConfiguredStringUserReferenceSerializer implements UserReferenceSerializer<String> { @Override public String serialize(UserReference userReference) { return resolveUserReferenceSerializer().serialize(userReference); }  @Override String serialize(UserReference userReference);  }