// Path: kawala-converters/src/main/java/com/kaching/platform/converters/Converter.java
// public interface Converter<T> extends ToString<T>, FromString<T> {
// }


import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import java.sql.ResultSet;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.jmock.Sequence;
import org.junit.Before;
import org.junit.Test;
import com.kaching.platform.converters.Converter;

    mockery = new Mockery();
    type = new AbstractStringImmutableType<Integer>() {
      @Override
      protected Converter<Integer> converter() {
        return new Converter<Integer>() {
          @Override
          public String toString(Integer value) {
            return value.toString();
          }
          @Override
          public Integer fromString(String representation) {
            return Integer.parseInt(representation);
          }
        };
      }
      @Override
      public Class<?> returnedClass() {
        return null;
      }
    };
  }

  @Test
  public void getButWasNull() throws Exception {
    final ResultSet rs = mockery.mock(ResultSet.class);
    final Sequence execution = mockery.sequence("execution");
    mockery.checking(new Expectations() {{
      one(rs).getString(with(equal("name0here")));
          inSequence(execution);
          will(returnValue("78"));

// Path: kawala-converters/src/main/java/com/kaching/platform/converters/Converter.java
// public interface Converter<T> extends ToString<T>, FromString<T> {
// }


// Path: kawala-hibernate/src/test/java/com/kaching/platform/hibernate/types/AbstractStringImmutableTypeTest.java
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import java.sql.ResultSet;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.jmock.Sequence;
import org.junit.Before;
import org.junit.Test;
import com.kaching.platform.converters.Converter;

    mockery = new Mockery();
    type = new AbstractStringImmutableType<Integer>() {
      @Override
      protected Converter<Integer> converter() {
        return new Converter<Integer>() {
          @Override
          public String toString(Integer value) {
            return value.toString();
          }
          @Override
          public Integer fromString(String representation) {
            return Integer.parseInt(representation);
          }
        };
      }
      @Override
      public Class<?> returnedClass() {
        return null;
      }
    };
  }

  @Test
  public void getButWasNull() throws Exception {
    final ResultSet rs = mockery.mock(ResultSet.class);
    final Sequence execution = mockery.sequence("execution");
    mockery.checking(new Expectations() {{
      one(rs).getString(with(equal("name0here")));
          inSequence(execution);
          will(returnValue("78"));

      one(rs).wasNull();
