java api tests