LynxActivity extends Activity { private LynxConfig getLynxConfig() { Bundle extras = getIntent().getExtras(); LynxConfig lynxConfig = new LynxConfig(); if (extras != null && extras.containsKey(LYNX_CONFIG_EXTRA)) { lynxConfig = (LynxConfig) extras.getSerializable(LYNX_CONFIG_EXTRA); } return lynxConfig; }  static Intent getIntent(Context context); static Intent getIntent(Context context, LynxConfig lynxConfig);  }
@Test public void shouldConfigureLynxViewWithTheDefaultLynxConfigObjectIfThereIsNoOtherConfiguration() { LynxView lynxView = getLynxView(); LynxConfig lynxConfig = lynxView.getLynxConfig(); LynxConfig defaultLynxConfig = new LynxConfig(); assertEquals(defaultLynxConfig, lynxConfig); }