### Question:
GenerateInsituPointsWorkflow extends Workflow { static Sensor createSensor(String name, long pattern) { return new SensorBuilder().name(name).pattern(pattern).observationType(InsituObservation.class).build(); } GenerateInsituPointsWorkflow(WorkflowContext context); @Override void execute(List<SamplingPoint> samplingPoints); @Override List<SamplingPoint> execute();  }### Answer:
@Test public void testGenerateSensor() { final Sensor sensor = GenerateInsituPointsWorkflow.createSensor("Sarah", 8877646L); assertNotNull(sensor); assertEquals("Sarah", sensor.getName()); assertEquals(8877646L, sensor.getPattern()); assertEquals("InsituObservation", sensor.getObservationType()); }