Hi Sameer,
I'm not sure how you created your POM, but you have a mix of downstream dependencies, incorrect server dependencies, and missing others.
Here is a correct list in Gradle notation of groupId:artifactId:version
compile ('com.complexible.stardog.protocols.snarl:client:2.1.2')
compile ('com.complexible.stardog:common-rdf:2.1.2')
compile ('com.complexible.stardog:openrdf-utils:2.1.2')
compile ('com.complexible.stardog:shared:2.1.2')
compile ('org.openrdf.sesame:sesame:2.7.7')
compile ('com.complexible.stardog:api:2.1.2')
Note that Maven support for running Stardog as an embedded server is not supported as of 2.1.2, and does require the full server set of libraries. So in your Junit class, you're calls to the 'Stardog' class in your startEmbeddedServer method will not find the classes. For running embedded server, we often simplify our build files with Gradle and use the fileTree mechanism to pull in all of the jars in the Stardog distribution. I would recommend you start with client/server in your development environment first before moving to embedded server. Unless you're app really needs embedded server, you can automate a test Stardog instance in your CI toolchain and still use the client/server mode – I.e. A prebuilt step that starts a Stardog instance, then builds your app, then a post-build action that stops the Stardog instance.
What I did for the Stardog-Spring setup is have client/server jars, but then pull in the full jar list as a test dependency, so an embedded server can be used for testing. This is much easier with Gradle where a 'fileTree' call is all that is needed. Otherwise, you'll have to enumerate the full list and populate them in your pom. An example can be seen in the stardog-spring build.gradle file (see line 61 for the testCompile line for embedded server):
To make sure you have the right jars, download the latest Starodg, navigate to the bin folder where you'll find a mavenInstall (Unix) and mavenInstall.bat (Windows) file. Run the appropriate script for your platform. Once you do, you'll notice you ~/.m2/repository folder will now have a "com/complexible/…" hierarchy in it. There should be no snapshots in any of the POMs provided.
This is covered at the end of the Programming Java section of the Stardog docs (scroll to bottom):