/**
* Test of saveContact method, of class com.totsp.gwittir.example.remote.ContactsServiceServlet.
*/
public void testSaveContact() throws Exception {
Contact c = new Contact();
c.setFirstName("Charlie");
c.setLastName("Collins");
StateLookup state = new StateLookup();
state.id = Integer.valueOf( 13 );
state.code = "GA";
state.name = "Georgia";
ArrayList addresses = new ArrayList();
Address a = new Address();
a.setAddress1( "555 Peachtree St.");
a.setCity( "Somewhere");
a.setState( state );
TypeLookup type = new TypeLookup();
type.id = Integer.valueOf( 1 );
type.name = "home";
a.setType( type );
addresses.add( a );
c.setAddresses( addresses );
ContactsServiceServlet servlet = new ContactsServiceServlet();
servlet.setMappings( MAPPING_PROPS );
servlet.setService( service );
c = servlet.saveContact( c );
Address work = new Address();
work.setAddress1("333 Work St.");
work.setState( state );
work.setType( type );
work.setZip("30308");
c.getAddresses().add(work);
servlet.saveContact( c );
}