@Test
public void testOnPrepareChoices() {

    // a drawable
    ImageView imageView = new ImageView(RuntimeEnvironment.application);
    ImageViewTarget target = new ImageViewTarget(imageView);
    target.placeHolder(new ColorDrawable(Color.BLUE));
    target.onPreparingLoad();
    Assert.assertNotNull(imageView.getDrawable());
    // a resource id
    target = new ImageViewTarget(imageView);
    target.placeHolder(R.drawable.abc_btn_radio_material);
    target.onPreparingLoad();
    // TODO: imagewiew now sets the image async'ly. This can't be checked like this
      Assert.assertNotNull(imageView.getDrawable());
    // no drawable given
    target = new ImageViewTarget(imageView);
    Assert.assertNull(target.getPlaceHolderDrawable());
    target.onPreparingLoad();
    Assert.assertNull(imageView.getDrawable());
}