BuildNumber { public BuildNumber() { String msg; try { ResourceBundle bundle = ResourceBundle.getBundle( "build" ); msg = bundle.getString( "build.message" ); buildDate = new Date( Long.valueOf( bundle.getString( "build.timestamp" ) ) ); } catch ( MissingResourceException e ) { msg = "Unknown Build"; } buildMessage = msg; } BuildNumber(); String getBuildMessage(); String getBuildDate();  }
@Test public void buildNumber() { BuildNumber buildNumber = Guice.createInjector().getInstance( BuildNumber.class ); assert "test build message".equals( buildNumber.getBuildMessage() ); }