Context context = new MessageInterpolatorContext( null, null, null, Collections.<String, Object>emptyMap() );
MessageInterpolator.Context asMessageInterpolatorContext = context.unwrap( MessageInterpolator.Context.class );
assertSame( asMessageInterpolatorContext, context );
HibernateMessageInterpolatorContext asHibernateMessageInterpolatorContext = context.unwrap(
HibernateMessageInterpolatorContext.class
);
assertSame( asHibernateMessageInterpolatorContext, context );
Object asObject = context.unwrap( Object.class );