### Question:
RegisterParams { UInt64 getAmount() { return Optional.ofNullable(this.amount).orElse(UInt64.valueOf(MAX_EFFECTIVE_BALANCE)); } RegisterParams(); @VisibleForTesting  RegisterParams(
      final CommandSpec commandSpec,
      final Eth1PrivateKeyOptions eth1PrivateKeyOptions,
      final IntConsumer shutdownFunction,
      final ConsoleAdapter consoleAdapter); RegisterAction createRegisterAction(final boolean verboseOutputEnabled);  }### Answer:
@Test public void shouldUseMaxEffectiveBalanceAsDefaultAmount() { Constants.MAX_EFFECTIVE_BALANCE = 12345678; final Eth1PrivateKeyOptions eth1PrivateKeyOptions = new Eth1PrivateKeyOptions(); eth1PrivateKeyOptions.eth1PrivateKey = ETH1_PRIVATE_KEY; final RegisterParams registerParams = new RegisterParams(commandSpec, eth1PrivateKeyOptions, SHUTDOWN_FUNCTION, consoleAdapter); assertThat(registerParams.getAmount()) .isEqualTo(UInt64.valueOf(Constants.MAX_EFFECTIVE_BALANCE)); }