source: class StringListTest {
  
      private String STRING_A1;
      private String STRING_A2;
      private String STRING_A3;
      private String STRING_1_ELEMENT;
      private String STRING_2_ELEMENTS;
      private String STRING_3_ELEMENTS;
       StringList stringList;
  
      @Test
      public void testReadFromString() {
  
target: 
          // Test null String
  
          stringList.readFromString(null);
  
          assertEquals(0, stringList.size());
  
          // Test empty String
  
          stringList.readFromString("");
  
          assertEquals(0, stringList.size());
  
          // Test String containing just one element
  
          stringList.readFromString(STRING_1_ELEMENT);
  
          assertEquals(1, stringList.size());
          assertEquals(STRING_A1, stringList.get(0));
  
          // Test String containing two elements
  
          stringList.readFromString(STRING_2_ELEMENTS);
  
          assertEquals(2, stringList.size());
          assertEquals(STRING_A1, stringList.get(0));
          assertEquals(STRING_A2, stringList.get(1));
  
          // Test String containing three elements
  
          stringList.readFromString(STRING_3_ELEMENTS);
  
          assertEquals(3, stringList.size());
          assertEquals(STRING_A1, stringList.get(0));
          assertEquals(STRING_A2, stringList.get(1));
          assertEquals(STRING_A3, stringList.get(2));
      }
  
  }