class ShouldHavePeriod extends BasicErrorMessageFactory {

  private static final String EXPECTED_PREFIX = "%n" +
                                                "Expecting Period:%n" +
                                                "  %s%n" +
                                                "to have %s ";

  private ShouldHavePeriod(Period actual, int actualSpecific, int expectedSpecific, String metric) {
    super(EXPECTED_PREFIX + metric + " but had %s", actual, expectedSpecific, actualSpecific);
  }

  public static ShouldHavePeriod shouldHaveYears(Period actual, int actualYear, int expectedYear) {
    final String metric = Math.abs(expectedYear) == 1 ? "year" : "years";
    return new ShouldHavePeriod(actual, actualYear, expectedYear, metric);
  }

  public static ShouldHavePeriod shouldHaveMonths(Period actual, int actualMonths, int expectedMonths) {
    final String metric = Math.abs(expectedMonths) == 1 ? "month" : "months";
    return new ShouldHavePeriod(actual, actualMonths, expectedMonths, metric);
  }

  public static ShouldHavePeriod shouldHaveDays(Period actual, int actualDays, int expectedDays) {<FILL_FUNCTION_BODY>}
}

    final String metric = Math.abs(expectedDays) == 1 ? "day" : "days";
    return new ShouldHavePeriod(actual, actualDays, expectedDays, metric);
  
<methods>public transient void <init>(java.lang.String, java.lang.Object[]) ,public java.lang.String create(org.assertj.core.description.Description, org.assertj.core.presentation.Representation) ,public java.lang.String create(org.assertj.core.description.Description) ,public java.lang.String create() ,public boolean equals(java.lang.Object) ,public int hashCode() ,public java.lang.String toString() <variables>protected final non-sealed java.lang.Object[] arguments,protected final non-sealed java.lang.String format,org.assertj.core.error.MessageFormatter formatter