@SuppressWarnings("ResultOfMethodCallIgnored") private static void writeConfigurationToFile(Configuration conf) throws Exception {
  final String path=U.getIgniteHome() + SECONDARY_CFG_PATH;
  File file=new File(path);
  file.delete();
  assertFalse(file.exists());
  try (FileOutputStream fos=new FileOutputStream(file)){
    conf.writeXml(fos);
  }
   assertTrue(file.exists());
}

@ SuppressWarnings ( "ResultOfMethodCallIgnored" ) private static void writeConfigurationToFile ( Configuration conf ) throws Exception { final String path = U . getIgniteHome ( ) + SECONDARY_CFG_PATH ; File file = new File ( path ) ; file . delete ( ) ; assertFalse ( file . exists ( ) ) ; try ( FileOutputStream fos = new FileOutputStream ( file ) ) { conf . writeXml ( fos ) ; } assertTrue ( file . exists ( ) ) ; }
write configuration to file .
