CvsMapper { public String map(Observation observation) { return observation.getId() + SEPARATOR + observation.getName() + SEPARATOR + observation.getTime(); }  String map(Observation observation); static final String SEPARATOR; }
@Test public void testBadData() { assertThat(new CvsMapper().map(new Observation(1, "name\"with\"quotes", "1", null)), nullValue()); }