	@Test
	public void testExtractData() throws DataAccessException, SQLException {

		CustomerResultSetExtractor extractor = new CustomerResultSetExtractor();
		ResultSet rs = mock(ResultSet.class);
		given(rs.next()).willReturn(true).willReturn(false);
		given(rs.getString("ID")).willReturn("customer1");
		given(rs.getString("NAME")).willReturn("customer name");

		CustomerPayload payload = new CustomerPayload();
		payload.setId("customer1");
		payload.setName("customer name");
		PayloadWrapper<CustomerPayload> payloadWrapper = new PayloadWrapper<CustomerPayload>(payload);
		assertThat(extractor.extractData(rs)).isEqualTo(payloadWrapper);
	}