package com.novoda.sexp.marshaller;

import org.junit.Before;
import org.junit.Test;

import static org.fest.assertions.api.Assertions.assertThat;

public class StringBodyMarshallerShould {

    StringBodyMarshaller stringBodyMarshaller;

    @Before
    public void setUp() {
        stringBodyMarshaller = new StringBodyMarshaller();
    }

    @Test
    public void marshallTheString() throws Exception {
        String theInput = "theInput";

        assertThat(stringBodyMarshaller.marshall(theInput)).isEqualTo(theInput);
    }
}

@@ -526,11 +526,151 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void marshallNull() throws Exception %7B%0A        assertThat(stringBodyMarshaller.marshall(null)).isEqualTo(null);%0A    %7D
 %0A%7D%0A

add test for marshaling null strings