title: Spring-Cassandra Unit with Embedded Cassandra Dependency Injection Issue
body: <p>I am having issue with Spring unit testing with Embedded Cassandra. The issue is both Embedded Cassandra and My Cassandra Server are starting at the same time. How to make sure that during unit testing only Embedded Cassandra Starts.</p>
  
  <p>I am using spring-data for Cassandra.</p>
  
  <p>I have the following Spring Config File.</p>
  
  <pre><code>cassandra.contactpoints=xxx.yyy.1.42
  cassandra.keyspace=dialoguedev
  </code></pre>
  
  <p>My context file</p>
  
  <pre><code>    &lt;?xml version='1.0'?&gt;
      &lt;beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cassandra="http://www.springframework.org/schema/data/cassandra"
     xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/cql http://www.springframework.org/schema/cql/spring-cql-1.0.xsd
    http://www.springframework.org/schema/data/cassandra http://www.springframework.org/schema/data/cassandra/spring-cassandra-1.0.xsd
  http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd"&gt;
  
  &lt;context:component-scan base-package="com.xxx.cassandra" /&gt;
  &lt;context:property-placeholder location="classpath:cassandra.properties" /&gt;
  &lt;cassandra:cluster contact-points="${cassandra.contactpoints}"
          /&gt;
   &lt;cassandra:session keyspace-name="${cassandra.keyspace}"
                     schema-action="RECREATE"
          /&gt;
  &lt;cassandra:mapping /&gt;
  &lt;cassandra:converter /&gt;
  
  &lt;cassandra:template /&gt;
  &lt;cassandra:repositories base-package="com.xxx.cassandra.repository" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>My test case is as follows:</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration(value = {"classpath:cassandrabeans.xml"})
  @TestExecutionListeners( {  DependencyInjectionTestExecutionListener.class,    CassandraUnitDependencyInjectionTestExecutionListener.class  })
  @EmbeddedCassandra
  
  public class EventLogInsertTest  extends AbstractCassandraIntegrationTest {
  
  @Autowired
  private EventLogEventRepository eventLogEventRepository;
  
  @Autowired
  private EventLogPersonRepository eventLogPersonRepository;
  
  @Test
  public void runAllTableInsertTest()  throws Exception{
  
  }
  </code></pre>
  
  <p>}</p>