### Question:
RangerPolicyService extends RangerPolicyServiceBase<XXPolicy, RangerPolicy> { @Override protected void validateForCreate(RangerPolicy vObj) { } RangerPolicyService(); RangerPolicy getPopulatedViewObject(XXPolicy xPolicy); List<XXTrxLog> getTransactionLog(RangerPolicy vPolicy, int action); List<XXTrxLog> getTransactionLog(RangerPolicy vObj, XXPolicy mObj, int action); static final String POLICY_RESOURCE_CLASS_FIELD_NAME; static final String POLICY_ITEM_CLASS_FIELD_NAME; static final String POLICY_NAME_CLASS_FIELD_NAME; }### Answer:
@Test public void test1ValidateForCreate() { RangerPolicy rangerPolicy = rangerPolicy(); policyService.validateForCreate(rangerPolicy); Assert.assertNotNull(rangerPolicy); }