src/main/java/org/fest/assertions/internal/Maps.java
public <K, V> void assertHasSize(Description description, Map<K, V> actual, int expectedSize) {
    assertNotNull(description, actual);
    int sizeOfActual = actual.size();
    if (sizeOfActual != expectedSize) {
      throw failures.failure(description, shouldHaveSize(actual, sizeOfActual, expectedSize));
    }
  }
public <K, V> void assertHasSize(Description description, Map<K, V> actual, int expectedSize) {
    assertNotNull(description, actual);
    int sizeOfActual = actual.size();
    if (sizeOfActual != expectedSize) {
      throw failures.failure(description, shouldHaveSize(actual, sizeOfActual, expectedSize));
    }
  }
Asserts that the number of entries in the given {@code Map} is equal to the expected one.

@param description contains information about the assertion.
@param actual the given {@code Map}.
@param expectedSize the expected size of {@code actual}.
@throws AssertionError if the given {@code Map} is {@code null}.
@throws AssertionError if the number of entries in the given {@code Map} is different than the expected one.