    @Test
    public void testDispatchDraw() {


        ActivityController<Activity> activityController = Robolectric.buildActivity(Activity.class).create().start().resume()
                .visible();

        Activity activity = activityController.get();

        CircleView mView = new CircleView(activity);

        mView.setCenterY(2);
        mView.setCenterX(3);
        mView.setRadius(22);

        Canvas canvasMock = Mockito.mock(Canvas.class);

        mView.dispatchDraw(canvasMock);

        verify(canvasMock).drawCircle(Matchers.eq(3.0f), Matchers.eq(2.0f), Matchers.eq(22.0f), any(Paint.class));

    }