Separate test database

Can someone tell me how to configure a separate test schema? Something like an inmemory DB which is used for testing only so that production db can remain separate. Also if there is any example of the same.
Thanks in advance,

@Ashish_Pingale you can setup a maven profile like below:


To activate this you would type this on the command line:

mvn groupId:artifactId:goal -Denvironment=test