brapi-java-client/src/test/java/org/brapi/client/v2/modules/phenotype/ObservationVariablesApiTest.java
@Test
    public void searchVariablesPostTest() throws ApiException {
        BrAPIObservationVariableSearchRequest body = null;

        IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> {
            ApiResponse<Pair<Optional<BrAPIObservationVariableListResponse>, Optional<BrAPIAcceptedSearchResponse>>> response =
                    api.searchVariablesPost(body);
        });

        // TODO: test validations
    }
/**
     * Submit a search request for Observation Variables
     *
     * Search observation variables.  See Search Services for additional implementation details.
     *
     * @throws ApiException
     *          if the Api call fails
     */
Submit a search request for Observation Variables
Search observation variables.  See Search Services for additional implementation details.

@throws ApiException
if the Api call fails
Submit a search request for Observation Variables Search observation variables . See Search Services for additional implementation details . @throws ApiException if the Api call fails
@Test
    public void searchVariablesPostTest() throws ApiException {
        BrAPIObservationVariableSearchRequest body = null;
        IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> {
            ApiResponse<Pair<Optional<BrAPIObservationVariableListResponse>, Optional<BrAPIAcceptedSearchResponse>>> response =
                    api.searchVariablesPost(body);
        });
    }
@ Test public void searchVariablesPostTest ( ) throws ApiException { BrAPIObservationVariableSearchRequest body = null ; IllegalArgumentException exception = assertThrows ( IllegalArgumentException . class , ( ) -> { ApiResponse < Pair < Optional < BrAPIObservationVariableListResponse > , Optional < BrAPIAcceptedSearchResponse > > > response = api . searchVariablesPost ( body ) ; } ) ; }
Submit a search request for Observation Variables
 Search observation variables.
Submit a search request for Observation Variables Search observation variables .
// TODO: test validations