Given this really simple Wicket component:
public class ProductImage extends WebComponent {
public ProductImage(String id, Product p) {
super(id, new Model(p));
add(new AttributeModifier("src", true, new Model(p.getImage())));
}
}
How to unit test it using WicketTester? Do I need a page?