@Test
public void testSerializeThreadLocals() {

	initalizeThreadLocals();
	Map<String, Serializable> taskContextMap = new HashMap<>();
	backgroundTaskThreadLocalManagerImpl.serializeThreadLocals(
		taskContextMap);
	Map<String, Serializable> threadLocalValues =
		(Map<String, Serializable>)taskContextMap.get(
			BackgroundTaskThreadLocalManagerImpl.KEY_THREAD_LOCAL_VALUES);
	assertThreadLocalValues(threadLocalValues);
}