NimbleLinearLayout extends LinearLayout implements NimbleView { public Activity getActivity() { return ViewHelper.getInstance().getActivity(getContext()); } NimbleLinearLayout(Context context);  NimbleLinearLayout(Context context, AttributeSet attrs);  NimbleLinearLayout(Context context, AttributeSet attrs, int defStyleAttr); Activity getActivity();  }
@Test public void testGetActivity() throws Exception { Activity activity = layout.getActivity(); Assert.assertNotNull(activity); }