public class UpsertTest extends BaseIntravertTest {
@Test
public void createApplicationFilter() throws JsonGenerationException, JsonMappingException, IllegalStateException, UnsupportedEncodingException, IOException, RuntimeException{
Request request = new Request();
request.getOperations().add(new Operation().withId("0").withType(ActionFactory.CREATE_KEYSPACE).withArguments(
new ImmutableMap.Builder<String, Object>()
.put("name", "example")
.put("replication", 1)
.put("ignoreIfNotExists", true).build()));
request.getOperations().add(new Operation().withId("1").withType(ActionFactory.CREATE_COLUMN_FAMILY).withArguments(
new ImmutableMap.Builder<String, Object>()
.put("keyspace", "example")
.put("columnFamily", "upsert")
.put("ignoreIfNotExists", true).build()));
request.getOperations().add(new Operation()
.withId("2").withType(ActionFactory.SET_KEYSPACE).withArguments(
new ImmutableMap.Builder<String, Object>().put("name", "example").build()));
request.getOperations().add(new Operation()
.withId("3").withType(ActionFactory.UPSERT).withArguments(
new ImmutableMap.Builder<String, Object>().put("rowkey", "ecapriolo")
.put("column","firstname")
.put("value","edward")
.put("keyspace","example")