### Question:
AnalyticsModelingOMASResource { @PostMapping(path = "/{dataSourceGUID}/tables") public AnalyticsModelingOMASAPIResponse getTables( @PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("dataSourceGUID") String dataSource, @RequestParam(required = false) String catalog, @RequestParam(required = true) String schema, @RequestBody(required=false) Object request ) { return restAPI.getTables(serverName, userId, dataSource, schema); }  @GetMapping(path = "/databases") AnalyticsModelingOMASAPIResponse getDatabases(
			@PathVariable("serverName") String serverName,
            @PathVariable("userId") String userId,
            @PositiveOrZero(message = "startFrom should be a positive number")
            @RequestParam Integer startFrom,
            @PositiveOrZero(message = "pageSize should be a positive number")
            @RequestParam Integer pageSize
            ); @GetMapping(path = "/{dataSourceGUID}/schemas") AnalyticsModelingOMASAPIResponse getSchemas(
			@PathVariable("serverName") String serverName,
            @PathVariable("userId") String userId,
            @PathVariable("dataSourceGUID") String dataSource,
            @PositiveOrZero(message = "startFrom should be a positive number")
            @RequestParam Integer startFrom,
            @PositiveOrZero(message = "pageSize should be a positive number")
            @RequestParam Integer pageSize
			); @PostMapping(path = "/{dataSourceGUID}/tables") AnalyticsModelingOMASAPIResponse getTables(
			@PathVariable("serverName") String serverName,
            @PathVariable("userId") String userId,
			@PathVariable("dataSourceGUID") String dataSource,
			@RequestParam(required = false) String catalog,
			@RequestParam(required = true) String schema,
			@RequestBody(required=false) Object request
			); @PostMapping(path = "/{dataSourceGUID}/physicalModule") AnalyticsModelingOMASAPIResponse getPhysicalModule(
			@PathVariable("serverName") String serverName,
            @PathVariable("userId") String userId,
			@PathVariable("dataSourceGUID") String dataSource,
			@RequestParam(required=false) String catalog,
			@RequestParam(required=true) String schema,
			@RequestBody(required=false) Object request
			);  }### Answer:
@Test void getTables() { when(restAPI.getTables(SERVER_NAME, USER, GUID, SCHEMA)).thenReturn(null); resource.getTables(SERVER_NAME, USER, GUID, null, SCHEMA, null); verify(restAPI, times(1)).getTables(SERVER_NAME, USER, GUID, SCHEMA); }