### Question:
CircularDrawable extends Drawable { public float getDiameter() { return diameter; } CircularDrawable(Bitmap bitmap);  CircularDrawable(Bitmap bitmap, float explicitDiameter); float getDiameter(); void setBorder(float borderWidth, int borderColor); void clearBorder(); @Override void draw(Canvas canvas); @Override int getOpacity(); @Override void setAlpha(int alpha); @Override void setColorFilter(ColorFilter cf); @Override int getIntrinsicHeight(); @Override int getIntrinsicWidth();  }### Answer:
@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()); }