@Test public void notNull() { ValueTransformers valueTransformers = context.lookup(ValueTransformers.class); try { valueTransformers.notNull(null); fail("NPE expected"); } catch (NullPointerException npe) { assertEquals("passed object is null", npe.getMessage()); } }
@Test public void trimmed() { ValueTransformers valueTransformers = context.lookup(ValueTransformers.class); assertEquals("str", valueTransformers.trimmed()); }