TriggerLocation extends Trigger { TriggerLocation setMode(InputLocationMode.Mode value) { modeSelected.setValue(value); return this; } TriggerLocation(); private  TriggerLocation(TriggerLocation triggerLocation); @Override synchronized boolean shouldRun(); @Override synchronized String toJSON(); @Override int friendlyName(); @Override String friendlyDescription(); @Override Optional<Integer> icon(); @Override Trigger duplicate(); @Override void generateDialog(LinearLayout root, FragmentManager fragmentManager);  }
@Test public void setModeTest() { TriggerLocation t = new TriggerLocation(); t.setMode(InputLocationMode.Mode.INSIDE); Assert.assertEquals(t.modeSelected.getValue(), InputLocationMode.Mode.INSIDE); }