### Question:
ContextAssert extends AbstractAssert<ContextAssert, Context> { public ContextAssert containsOnly(Context other) { Map.Entry<Object, Object>[] otherArray = other.stream().toArray(ARRAY_GENERATOR); iterables.assertContainsOnly(info, actualAsList, otherArray); return this; } ContextAssert(Context context); ContextAssert allSatisfy(BiConsumer<Object, Object> entryRequirements); ContextAssert contains(Object key, Object value); ContextAssert containsAllOf(Context other); ContextAssert containsAllOf(Map<?, ?> other); ContextAssert containsKeys(Object... keys); ContextAssert containsOnly(Context other); ContextAssert containsOnly(Map<?, ?> other); ContextAssert containsOnlyKeys(Object... keys); ContextAssert doesNotContain(Object key, Object value); ContextAssert doesNotContainKey(Object key); ContextAssert doesNotContainKeys(Object... keys); ContextAssert doesNotContainValue(Object value); ContextAssert hasEntrySatisfying(BiConsumer<Object, Object> entryRequirements); ContextAssert hasKey(Object key); ContextAssert hasKeySatisfying(Consumer<Object> keyRequirements); ContextAssert hasSize(int size); ContextAssert hasValueSatisfying(Consumer<Object> valueRequirements); ContextAssert isEmpty(); ContextAssert isNotEmpty();  }### Answer:
@Test void context1StreamStringRepresentation() { assertThatExceptionOfType(AssertionError.class) .isThrownBy(() -> Assertions.assertThat(Context.of(1, 10).stream()).containsOnly(new AbstractMap.SimpleEntry<>("foo", "bar"))) .withMessage("\nExpecting:\n <[1=10]>\nto contain only:\n <[foo=bar]>\nelements not found:" + "\n <[foo=bar]>\nand elements not expected:\n <[1=10]>\n"); }