@ -17,6 +17,7 @@ package org.hyperledger.besu.cli;
import static java.nio.charset.StandardCharsets.UTF_8 ;
import static java.util.Arrays.asList ;
import static org.assertj.core.api.Assertions.assertThat ;
import static org.hamcrest.Matchers.startsWith ;
import static org.hyperledger.besu.cli.config.NetworkName.CLASSIC ;
import static org.hyperledger.besu.cli.config.NetworkName.DEV ;
import static org.hyperledger.besu.cli.config.NetworkName.GOERLI ;
@ -41,6 +42,7 @@ import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfigura
import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfiguration.RINKEBY_DISCOVERY_URL ;
import static org.hyperledger.besu.ethereum.worldstate.DataStorageFormat.BONSAI ;
import static org.hyperledger.besu.nat.kubernetes.KubernetesNatManager.DEFAULT_BESU_SERVICE_NAME_FILTER ;
import static org.junit.Assume.assumeThat ;
import static org.mockito.ArgumentMatchers.any ;
import static org.mockito.ArgumentMatchers.eq ;
import static org.mockito.ArgumentMatchers.isNotNull ;
@ -4755,6 +4757,10 @@ public class BesuCommandTest extends CommandTestAbstract {
@Test
public void privEnclaveKeyFileDoesNotExist ( ) {
assumeThat (
"Ignored if system language is not English" ,
System . getProperty ( "user.language" ) ,
startsWith ( "en" ) ) ;
parseCommand ( "--privacy-enabled=true" , "--privacy-public-key-file" , "/non/existent/file" ) ;
assertThat ( commandOutput . toString ( UTF_8 ) ) . isEmpty ( ) ;