diff --git a/kubernetes-tests/src/test/java/io/fabric8/openshift/client/server/mock/AdaptTest.java b/kubernetes-tests/src/test/java/io/fabric8/openshift/client/server/mock/AdaptTest.java index 9402b6c0ff9..ae28302407a 100644 --- a/kubernetes-tests/src/test/java/io/fabric8/openshift/client/server/mock/AdaptTest.java +++ b/kubernetes-tests/src/test/java/io/fabric8/openshift/client/server/mock/AdaptTest.java @@ -89,7 +89,7 @@ public void setHeaders(Headers headers) { } }).once(); server.expect().withPath("/apis").andReturn(HttpURLConnection.HTTP_OK, new APIGroupListBuilder() - .addToGroups(new APIGroupBuilder().withName("security.internal.openshift.io").build())) + .addToGroups(new APIGroupBuilder().withName("security.internal.openshift.io").build()).build()) .once(); client.getConfiguration().setUsername("foo");