As already explained here (http://stackoverflow.com/questions/33518327/hana-jbdc-connection-gives-a-valid-connection-for-non-existing-db) the SAP HANA client doesn't require a database name to connect. It only requires the correct host and port information.
The databaseName parameter is used only in multi-database setups, where you don't specify the sql port of the database you want to reach, but the port for the system database.
In a single DB environment or when the correct SQL port has been specified, the databaseName will just be ignored.