+1  A: 

Just import the package the API is in, create an instance and call the setter method on it:

import com.company.api.*;

public class ApiTester {

/**
 * @param args
 */
public static void main(String[] args) {
        ObjectToTest obj = new ObjectToTest();

        obj.setHeight(10); // Example

        System.out.println(obj.getHeight());
}
Shaharyar