public void TestWrite() {
    StringArrayTransform transform = new StringArrayTransform();
    String value = transform.write(new String[] { "one", "two", "three", "four"});
    AssertEquals(value, "one, two, three, four");
    value = transform.write(new String[] {"one", null, "three", "four"});
    AssertEquals(value, "one, three, four");
 }
 public void TestRead() {
    StringArrayTransform transform = new StringArrayTransform();
    String[] list = transform.read("one,two,three,four");
    AssertEquals("one", list[0]);
    AssertEquals("two", list[1]);
    AssertEquals("three", list[2]);
    AssertEquals("four", list[3]);
    list = transform.read("  this is some string ,\t\n "+
                          "that has each\n\r," +
                          "string split,\t over\n,\n"+
                          "several lines\n\t");
    AssertEquals("this is some string", list[0]);
    AssertEquals("that has each", list[1]);
    AssertEquals("string split", list[2]);
    AssertEquals("over", list[3]);
    AssertEquals("several lines", list[4]);
 }