@Test
  public void completeMultipartUpload_ToString_Test() {
    final String expected =
        "<CompleteMultipartUpload>"
            + "<Part><PartNumber>1</PartNumber><ETag>a54357aff0632cce46d942af68356b38</ETag></Part>"
            + "<Part><PartNumber>2</PartNumber><ETag>0c78aef83f66abc1fa1e8477f296d394</ETag></Part>"
            + "</CompleteMultipartUpload>";

    final Part part1 = new Part();
    part1.setPartNumber(1);
    part1.seteTag("a54357aff0632cce46d942af68356b38");

    final Part part2 = new Part();
    part2.setPartNumber(2);
    part2.seteTag("0c78aef83f66abc1fa1e8477f296d394");

    final ImmutableList<Part> parts = ImmutableList.of(part1, part2);
    final CompleteMultipartUpload input = new CompleteMultipartUpload();
    input.setParts(parts.asList());

    final String result = XmlOutput.toXml(input);

    assertThat(result, is(expected));
  }
 public void testAsList() {
   ImmutableList<String> list = ImmutableList.of("a", "b");
   assertSame(list, list.asList());
 }