### Question:
SyncOptions { public static ErrorFormatMode getErrorFormatMode(@NonNull ProjectOptions options) { if (options.get(BooleanOption.IDE_INVOKED_FROM_IDE)) { return ErrorFormatMode.MACHINE_PARSABLE; } else { return ErrorFormatMode.HUMAN_READABLE; } } private  SyncOptions(); static EvaluationMode getModelQueryMode(@NonNull ProjectOptions options); static ErrorFormatMode getErrorFormatMode(@NonNull ProjectOptions options); @Nullable static Integer buildModelOnlyVersion(@NonNull ProjectOptions options);  }### Answer:
@Test public void getErrorFormatMode() throws Exception { ProjectOptions noOptions = new ProjectOptions(ImmutableMap.of()); assertThat(SyncOptions.getErrorFormatMode(noOptions)) .isEqualTo(ErrorFormatMode.HUMAN_READABLE); ProjectOptions ideOptions = new ProjectOptions(ImmutableMap.of("android.injected.invoked.from.ide", "true")); assertThat(SyncOptions.getErrorFormatMode(ideOptions)) .isEqualTo(ErrorFormatMode.MACHINE_PARSABLE); }