@Test
public void testDiameter() {

    Bitmap bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888);
    CircularDrawable drawable = new CircularDrawable(bitmap);
    Assert.assertEquals(200.0f,  drawable.getDiameter());
    drawable = new CircularDrawable(bitmap, 50.0f);
    Assert.assertEquals(50.0f, drawable.getDiameter());
}