### Question:
TransactionValidationParams { public boolean checkOnchainPermissions() { return checkOnchainPermissions; } private  TransactionValidationParams(
      final boolean allowFutureNonce,
      final boolean checkOnchainPermissions,
      final boolean checkLocalPermissions); boolean isAllowFutureNonce(); boolean checkOnchainPermissions(); boolean checkLocalPermissions(); static TransactionValidationParams transactionSimulator(); static TransactionValidationParams processingBlock(); static TransactionValidationParams transactionPool(); static TransactionValidationParams mining(); static TransactionValidationParams blockReplay();  }### Answer:
@Test public void checkOnchainPermissions() { assertThat( new TransactionValidationParams.Builder() .checkOnchainPermissions(true) .build() .checkOnchainPermissions()) .isTrue(); assertThat( new TransactionValidationParams.Builder() .checkOnchainPermissions(false) .build() .checkOnchainPermissions()) .isFalse(); }