HudsonXmlHelper { public static boolean isSuccessful(Build build) { checkBuild(build); String state = build.getResult(); return "SUCCESS".equals(state); } private  HudsonXmlHelper(); static boolean isSuccessful(Build build); static String[] getCommiterNames(Build build);  }
@Test public void testIsSuccessful() { MavenModuleSetBuild job = mock(MavenModuleSetBuild.class); when(job.getResult()).thenReturn("SUCCESS"); boolean isSuccessful = HudsonXmlHelper.isSuccessful(job); assertTrue(isSuccessful); }