diff --git a/ethereum/executionlayer/src/test/java/tech/pegasys/teku/ethereum/executionlayer/MilestoneBasedEngineJsonRpcMethodsResolverTest.java b/ethereum/executionlayer/src/test/java/tech/pegasys/teku/ethereum/executionlayer/MilestoneBasedEngineJsonRpcMethodsResolverTest.java index 3bd17159088..79d6577e40a 100644 --- a/ethereum/executionlayer/src/test/java/tech/pegasys/teku/ethereum/executionlayer/MilestoneBasedEngineJsonRpcMethodsResolverTest.java +++ b/ethereum/executionlayer/src/test/java/tech/pegasys/teku/ethereum/executionlayer/MilestoneBasedEngineJsonRpcMethodsResolverTest.java @@ -227,7 +227,20 @@ void getsCapabilities() { "engine_getPayloadV3", "engine_forkchoiceUpdatedV3", "engine_newPayloadV4", - "engine_getPayloadV4", - "engine_getBlobsV1"); + "engine_getPayloadV4"); + } + + @Test + void getsOptionalCapabilities() { + final Spec spec = + TestSpecFactory.createMinimalWithCapellaDenebAndElectraForkEpoch( + UInt64.ONE, UInt64.valueOf(2), UInt64.valueOf(3)); + + final MilestoneBasedEngineJsonRpcMethodsResolver engineMethodsResolver = + new MilestoneBasedEngineJsonRpcMethodsResolver(spec, executionEngineClient); + + final Set capabilities = engineMethodsResolver.getOptionalCapabilities(); + + assertThat(capabilities).containsExactlyInAnyOrder("engine_getBlobsV1"); } }