### Question:
LoggingOptions { public LoggingDestination getLogDestination() { return logDestination; }  boolean isLogColorEnabled(); boolean isLogIncludeEventsEnabled(); boolean isLogIncludeValidatorDutiesEnabled(); LoggingDestination getLogDestination(); String getLogFile(); String getLogFileNamePattern(); boolean isLogWireCipherEnabled(); boolean isLogWirePlainEnabled(); boolean isLogWireMuxEnabled(); boolean isLogWireGossipEnabled(); static final String DEFAULT_LOG_FILE; static final String DEFAULT_LOG_FILE_NAME_PATTERN; }### Answer:
@Test public void logDestination_shouldHaveSensibleDefaultValue() { beaconNodeCommand.parse(new String[0]); final GlobalConfiguration globalConfiguration = getResultingGlobalConfiguration(); assertThat(globalConfiguration.getLogDestination()).isEqualTo(DEFAULT_BOTH); }
@Test public void logDestination_shouldAcceptFileAsDestination() { final GlobalConfiguration globalConfiguration = getGlobalConfigurationFromArguments("--log-destination", "file"); assertThat(globalConfiguration.getLogDestination()).isEqualTo(LoggingDestination.FILE); }
@Test public void logDestination_shouldAcceptConsoleAsDestination() { final GlobalConfiguration globalConfiguration = getGlobalConfigurationFromArguments("--log-destination", "console"); assertThat(globalConfiguration.getLogDestination()).isEqualTo(LoggingDestination.CONSOLE); }
@Test public void logDestination_shouldAcceptBothAsDestination() { final GlobalConfiguration globalConfiguration = getGlobalConfigurationFromArguments("--log-destination", "both"); assertThat(globalConfiguration.getLogDestination()).isEqualTo(LoggingDestination.BOTH); }