@Test
  public void writeNoneNullValue() throws IOException {
    final String extDocUrl = "extDocUrl";
    final String packageListLoc = "packageListLoc";

    linksOfflineOption.getValue().add(new JavadocOfflineLink(extDocUrl, packageListLoc));

    context.checking(
        new Expectations() {
          {
            one(writerContextMock).writeValueOption(optionName, extDocUrl + "' '" + packageListLoc);
          }
        });

    linksOfflineOption.write(writerContextMock);
  }
 @Test
 public void writeNullValue() throws IOException {
   linksOfflineOption.write(writerContextMock);
 }