### Question:
BeanUtils { public static <T, K> Function<T, K> getTransformer(final Class<K> targetClass) { return fromBean -> new TransformerImpl().transform(fromBean, targetClass); }  static Function<T, K> getTransformer(final Class<K> targetClass); static Function<T, K> getTransformer(final BeanTransformer beanTransformer, final Class<K> targetClass); final BeanTransformer getTransformer(); final Validator getValidator(); final Converter getPrimitiveTypeConverter();  }### Answer:
@Test public void testGetTransformerWorksProperly() { final BeanTransformer transformer = underTest.getTransformer(); assertThat(transformer).isNotNull(); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testGetTransformerThrowsExceptionIfTheBeanTransformerIsNull() { underTest.getTransformer(null, ImmutableToFooSimple.class); }