CloneDriveOptions { public CloneDriveOptions size(long size) { checkArgument(size >= 0, "size must be >= 0"); options.put("size", size + ""); return this; }  CloneDriveOptions size(long size); CloneDriveOptions tags(String... tags); CloneDriveOptions affinity(AffinityType affinity); Map<String, String> getOptions();  }
@Test public void testSize() { CloneDriveOptions options = new CloneDriveOptions().size(1024); assertEquals(options.getOptions().get("size"), "1024"); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testSizeNegative() { size(-1); }