Buggy code:
public class DateFormatterTest { private static final DateTimeZone EUROPE_LONDON = DateTimeZone . forID ( "Europe//London" ) ; private final DateFormatter dateFormatter = new DateFormatter ( DateFormatterTest . EUROPE_LONDON ) ; private final DateFormatter spanishDateFormatter = new DateFormatter ( DateFormatterTest . EUROPE_LONDON , "es" ) ; private final Date onceUponATime = new DateTime ( 2009 , 10 , 2 , 14 , 23 , 10 , 0 , DateFormatterTest . EUROPE_LONDON ) . toDate ( ) ; @ Test public void shouldBeAbleToOutputNiceTimeDeltas ( ) throws Exception { } @ Test public void niceTimeDeltaCanBeOutputInAlterativeLangauges ( ) throws Exception { final DateTime now = DateTime . now ( ) . minusSeconds ( 1 ) ; DateTime lessThanOneMinuteAgo = now . minusSeconds ( 30 ) ; assertEquals ( "En<seq2seq4repair_space>este<seq2seq4repair_space>momento" , spanishDateFormatter . timeSince ( lessThanOneMinuteAgo . toDate ( ) ) ) ; DateTime oneMinuteAgo = now . minusSeconds ( 70 ) ; assertEquals ( "Hace<seq2seq4repair_space>1<seq2seq4repair_space>minuto" , spanishDateFormatter . timeSince ( oneMinuteAgo . toDate ( ) ) ) ; DateTime fiveMinutesBefore = now . minusMinutes ( 5 ) ; assertEquals ( "Hace<seq2seq4repair_space>5<seq2seq4repair_space>minutos" , spanishDateFormatter . timeSince ( fiveMinutesBefore . toDate ( ) ) ) ; DateTime anHourAgo = now . minusHours ( 1 ) ; assertEquals ( "Hace<seq2seq4repair_space>1<seq2seq4repair_space>hora" , spanishDateFormatter . timeSince ( anHourAgo . toDate ( ) ) ) ; DateTime twoHoursAgo = now . minusHours ( 2 ) ; assertEquals ( "Hace<seq2seq4repair_space>2<seq2seq4repair_space>horas" , spanishDateFormatter . timeSince ( twoHoursAgo . toDate ( ) ) ) ; DateTime oneDayAgo = now . minusDays ( 1 ) ; <START_BUG> assertEquals ( "Hace<seq2seq4repair_space>1<seq2seq4repair_space>da" , spanishDateFormatter . timeSince ( oneDayAgo . toDate ( ) ) ) ; <END_BUG> DateTime oneWeekAgo = now . minusWeeks ( 1 ) . minusHours ( 1 ) ; assertEquals ( "Hace<seq2seq4repair_space>1<seq2seq4repair_space>semana" , spanishDateFormatter . timeSince ( oneWeekAgo . toDate ( ) ) ) ; DateTime nineMonthsAgo = now . minusMonths ( 9 ) . minusWeeks ( 1 ) ; assertEquals ( "Hace<seq2seq4repair_space>9<seq2seq4repair_space>meses" , spanishDateFormatter . timeSince ( nineMonthsAgo . toDate ( ) ) ) ; } @ Test public void shouldBeAbleToOutputNiceTimeDeltaForDatesInTheFuture ( ) throws Exception { } @ Test public void canGenerateYearFormat ( ) throws Exception { } @ Test public void canGenerateShortDayMonthYearFormat ( ) throws Exception { } @ Test public void canGenerateShortDayMonthYearFormatInAlternativeLanguages ( ) throws Exception { } @ Test public void canGenerateFullMonthYearFormat ( ) throws Exception { } @ Test public void canGenerateFullMonthYearFormatInAlternativeLanguages ( ) throws Exception { } @ Test public void canGenerateFullDayMonthYearFormat ( ) throws Exception { } @ Test public void canGenerateDayFullMonthYearFormatInAlternativeLanguages ( ) throws Exception { } @ Test public void canGenerateDayMonthYearTimeFormat ( ) throws Exception { } @ Test public void canGenerateDayMonthYearTimeWithSecondsFormat ( ) throws Exception { } @ Test public void canGenerateW3CDateTimeFormattedDate ( ) throws Exception { } @ Test public void alternativeLanguageFormattersCanStillGenerateValueW3CDateTimeFormattedDate ( ) throws Exception { } @ Test public void canGenerateYearMonthDayUrlStub ( ) throws Exception { } @ Test public void canGenerateYearMonthUrlStub ( ) throws Exception { } @ Test public void canGenerateDurationFromSeconds ( ) throws Exception { } @ Test public void shouldShowHoursIdDurationIsAnHourOrMore ( ) throws Exception { } No newline ; at end ; of file ; }

Fix:
assertEquals ( "Hace<seq2seq4repair_space>1<seq2seq4repair_space>dÃ­a" , spanishDateFormatter . timeSince ( oneDayAgo . toDate ( ) ) ) ;