package rod;

public class DummyAnalyzer implements Analyzer {

    private ObservationToCommandMapping observationToCommand;

    public void setObservationToCommand(ObservationToCommandMapping observationToCommand) {
        this.observationToCommand = observationToCommand;
    }

    @Override
    public Command analyze(Observation observation) throws UnrecognizableObservationException {
        if (observationToCommand.containsKey(observation.getClass())) {
            return observationToCommand.get(observation.getClass()).build();
        } else {
            throw new UnrecognizableObservationException(observation);
        }
    }

}

@@ -160,16 +160,22 @@
 Command(
+final 
 Observat
@@ -324,16 +324,22 @@
 analyze(
+final 
 Observat

Add final to method parameters