This paper presents experiences from the model-based development of a framework for a middleware targeting the needs for self-management and context awareness in automotive systems. The major focus is on a simulation platform and a reference implementation of the middleware architecture. We also discuss challenges and possible future extensions.