### Question:
CaliperConfig { public VmConfig getDefaultVmConfig() { return new Builder(new File(System.getProperty("java.home"))) .addAllOptions(ManagementFactory.getRuntimeMXBean().getInputArguments()) .addAllOptions(getArgs(subgroupMap(properties, "vm"))) .build(); } @VisibleForTesting  CaliperConfig(ImmutableMap<String, String> properties); ImmutableMap<String, String> properties(); VmConfig getDefaultVmConfig(); VmConfig getVmConfig(String name); ImmutableSet<String> getConfiguredInstruments(); InstrumentConfig getInstrumentConfig(String name); ImmutableSet<Class<? extends ResultProcessor>> getConfiguredResultProcessors(); ResultProcessorConfig getResultProcessorConfig(
      Class<? extends ResultProcessor> resultProcessorClass); @Override String toString();  }### Answer:
@Test public void getDefaultVmConfig() throws Exception { CaliperConfig configuration = new CaliperConfig( ImmutableMap.of("vm.args", "-very -special=args")); VmConfig defaultVmConfig = configuration.getDefaultVmConfig(); assertEquals(new File(System.getProperty("java.home")), defaultVmConfig.javaHome()); ImmutableList<String> expectedArgs = new ImmutableList.Builder<String>() .addAll(ManagementFactory.getRuntimeMXBean().getInputArguments()) .add("-very") .add("-special=args") .build(); assertEquals(expectedArgs, defaultVmConfig.options()); }