diff --git a/gax-java/gax/src/test/java/com/google/api/gax/rpc/EndpointContextTest.java b/gax-java/gax/src/test/java/com/google/api/gax/rpc/EndpointContextTest.java index d64f936aaf..6e2f581a79 100644 --- a/gax-java/gax/src/test/java/com/google/api/gax/rpc/EndpointContextTest.java +++ b/gax-java/gax/src/test/java/com/google/api/gax/rpc/EndpointContextTest.java @@ -54,7 +54,8 @@ class EndpointContextTest { private EndpointContext.Builder defaultEndpointContextBuilder; private StatusCode statusCode; - @SystemStub private final EnvironmentVariables environmentVariables = new EnvironmentVariables(); + @SystemStub + private static final EnvironmentVariables environmentVariables = new EnvironmentVariables(); @BeforeEach void setUp() throws IOException {