@Test
public void setStateTest() {

	Individual individual = new Individual();
	IndividualStateListener listener = new IndividualStateListener() {
		@Override
		public void inidividualStateChanged(Individual individual) {
			stateChanged = true;
		}
	};
	individual.setIndividualStatusListeners(Collections.singleton(listener));
	individual.setState(State.DECODING);
	Assert.assertEquals(State.DECODING, individual.getState());
	Assert.assertTrue(stateChanged);
}