@Test
  public void testGetDeltaPath() throws Exception {
    StrictDelimitedInputWriter writer = StrictDelimitedInputWriter.newBuilder()
        .withFieldDelimiter(',')
        .build();
    HiveStreamingConnection connection = HiveStreamingConnection.newBuilder()
        .withDatabase(dbName)
        .withTable(tblName)
        .withRecordWriter(writer)
        .withHiveConf(conf)
        .connect();
    Path path = connection.getDeltaFileLocation(partitionVals, 0,
        5L, 5L, 9);
    Assert.assertTrue(path.toString().endsWith("testing.db/alerts/continent"
        + "=Asia/country=India/delta_0000005_0000005_0009/bucket_00000"));
  }
Test that streaming can write to unbucketed table.
streaming/src/test/org/apache/hive/streaming/TestStreaming.java