JobsProperties { public Status getStatus() { return status; }  boolean isExternalTrigger(); void setExternalTrigger(boolean externalTrigger); int getThreadCount(); void setThreadCount(int threadCount); Cleanup getCleanup(); void setCleanup(Cleanup cleanup); Status getStatus(); void setStatus(Status status); Mongo getMongo(); void setMongo(Mongo mongo);  }
@Test public void shouldNormalizeJobTypes() throws Exception { final JobsProperties jobsProperties = new JobsProperties(); jobsProperties.getStatus().setCalculator(new HashMap<String,String>() {{ put("Some Job Type", "foo"); }}); Map<String, String> calculators = jobsProperties.getStatus().getCalculator(); assertThat(calculators, hasEntry("some-job-type", "foo")); }