PostView extends LinearLayout { @Override protected void onFinishInflate() { Context context = getContext(); if (!isInEditMode()) { Dagger.inject(this); ButterKnife.inject(this); } if (context != null) { LayoutInflater inflater = LayoutInflater.from(context); for (int i = 0; i < audioViews.length; i++) { audioViews[i] = (AudioView) inflater.inflate(R.layout.audio, this, false); addView(audioViews[i]); } } } PostView(Context context, AttributeSet attrs); void draw(@NotNull Post post);  }
@Test public void testOnFinishInflate() throws Exception { }