@Rule public JenkinsRule r = new JenkinsRule();
@Test public void configRoundTrip() throws Exception {
String name = "My JDK";
String type = r.jenkins.getDescriptorByType(JDK.DescriptorImpl.class).getId();
r.jenkins.getJDKs().add(new JDK(name, "/wherever"));
ToolStep s = new StepConfigTester(r).configRoundTrip(new ToolStep(name));
assertEquals(name, s.getName());
assertEquals(null, s.getType());
s.setType(type);
s = new StepConfigTester(r).configRoundTrip(s);