### Question:
TransferViewModel extends TransactionFxProgressCollectionModel { public void setTransactionLabelRenderer(Function<Transaction, String> transactionLabelRenderer) { this.transactionLabelRenderer = transactionLabelRenderer; } TransferViewModel(HasProgressCollection<?, Transaction> progress); String render(Transaction transaction); StringProperty currentTransactionLabel(); LongProperty currentTransactionPercent(); StringProperty currentTransactionPercentLabel(); BooleanProperty currentTransactionImageVisible(); ObjectProperty<Image> currentTransactionImage(); void setTransactionLabelRenderer(Function<Transaction, String> transactionLabelRenderer);  }### Answer:
@Test public void usesTransactionLabelRenderer() { model.setTransactionLabelRenderer(t -> "custom label"); transactions.add(createRunningTransaction()); assertEquals("custom label", getTransactionLabel()); }