@Before
  public void doBeforeEachTest() {
    chat = new ChatSession(mockGenerativeModel);
  }
Callable function getCurrentWeather for testing automatic function calling.
java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java