@Test
public void testSeparated() throws Exception
{
final DefaultConfiguration checkConfig = createCheckConfig(ImportOrderCheck.class);
checkConfig.addAttribute("groups", "java.awt, javax.swing, java.io");
checkConfig.addAttribute("separated", "true");
checkConfig.addAttribute("ordered", "false");
final String[] expected = {
"9: 'javax.swing.JComponent' should be separated from previous imports.",
"11: 'java.io.File' should be separated from previous imports.",
"16: Wrong order for 'javax.swing.WindowConstants.*' import.",