Separate test database

Hi,
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

@Ashish_Pingale you can setup a maven profile like below:

<profiles>
  <profile>
    <activation>
      <property>
        <name>environment</name>
        <value>test</value>
      </property>
    </activation>
    ...
  </profile>
</profiles>

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

mvn groupId:artifactId:goal -Denvironment=test

https://maven.apache.org/guides/introduction/introduction-to-profiles.html