Adapt to ProjectCache#get interface change

Change-Id: I44f28f41556ca20017047f3d1d075a6c664b8b23
diff --git a/src/test/java/com/googlesource/gerrit/plugins/simplesubmitrules/PluginIT.java b/src/test/java/com/googlesource/gerrit/plugins/simplesubmitrules/PluginIT.java
index 35d363d..e69213f 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/simplesubmitrules/PluginIT.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/simplesubmitrules/PluginIT.java
@@ -141,7 +141,8 @@
     SubmitConfig config = new SubmitConfig(ImmutableMap.of("Code-Review", codeReview), null);
     postConfig(project, config);
 
-    LabelType localCR = projectCache.get(project).getConfig().getLabelSections().get("Code-Review");
+    LabelType localCR =
+        projectCache.get(project).get().getConfig().getLabelSections().get("Code-Review");
     assertThat(localCR.getFunction()).isEqualTo(LabelFunction.MAX_NO_BLOCK);
 
     // Check that the label has the same configs besides the function, which we changed