### Question:
TypeBasedExpression implements Expression { public TypeBasedExpression(Class<?> clazz, String component) { this.clazz = clazz; this.component = component; } TypeBasedExpression(Class<?> clazz, String component); @Override String getExpression(); @Override String toString();  }### Answer:
@Test public void testTypeBasedExpression() throws Exception { TypeBasedExpression expression = new TypeBasedExpression(BeanWithElBeanNameAnnotation.class, "sayHello"); assertEquals("myBean.sayHello", expression.getExpression()); }