RegistryAdapter { public Trigger[] getTriggers() { registry.registerTriggers(); List<Trigger> allTriggers = new ArrayList<>(); List<Trigger> coreTriggers = addCoreTriggers(); final Trigger[] extTriggerArray = registry.getTriggers(); allTriggers.addAll(Arrays.asList(extTriggerArray)); allTriggers.addAll(coreTriggers); return allTriggers.toArray(trigger); }  Trigger[] getTriggers(); List<Trigger> addCoreTriggers(); void setSchedulerBean(final SchedulerFactoryBean schedulerBean); SchedulerFactoryBean getSchedulerBean(); Registerable getRegistry(); void setRegistry(Registerable registry); WorkflowScheduleService getWorkflowScheduleService(); void setWorkflowScheduleService(WorkflowScheduleService workflowScheduleService);  }
@Test public void testRegistryAdapterNegCase1() { thrown.expect(NullPointerException.class); RegistryAdapter adapter = new RegistryAdapter(); adapter.getTriggers(); fail("Expecting an exception."); }