### Question:
PropertiesRepresentation extends MappingRepresentation { @Override public boolean isEmpty() { return !entity.getPropertyKeys() .iterator() .hasNext(); } PropertiesRepresentation( PropertyContainer entity ); @Override boolean isEmpty(); static Representation value( Object property );  }### Answer:
@Test public void shouldBeAbleToSignalEmptiness() { PropertiesRepresentation properties = new PropertiesRepresentation( container( new HashMap<>() ) ); Map<String, Object> values = new HashMap<>(); values.put( "key", "value" ); assertTrue( properties.isEmpty() ); properties = new PropertiesRepresentation( container( values ) ); assertFalse( properties.isEmpty() ); }