public void propertiesInContextAreIncludedInSubObject() throws Exception {
Map<String, String> propertyMap = new HashMap<String, String>();
propertyMap.put("thing_one", "One");
propertyMap.put("thing_two", "Three");
final Context context = mock(Context.class);
when(context.getCopyOfPropertyMap()).thenReturn(propertyMap);
ILoggingEvent event = mockBasicILoggingEvent(Level.ERROR);
encoder.getFieldNames().setContext("context");
encoder.setContext(context);